bintools/rcomp/inc/DATATYPE.H
author Daniel Jacobs <daniel.jacobs@nokia.com>
Mon, 17 May 2010 11:37:12 +0100
branchfix
changeset 557 be0305eb3dc3
parent 0 044383f39525
permissions -rw-r--r--
Merge from default version 2.14.0.

/*
* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/


#if !defined(__DATATYPE_H__)
#define __DATATYPE_H__
#if !defined(__ARRAY_H__)
#include "ARRAY.H"
#endif
#if !defined(__ASTRING_H__)
#include "ASTRING.H"
#endif

typedef unsigned long DataType;

// RCType

class RCType : public ArrayItem
	{
public:
	RCType(DataType ElementType,const String& Name,unsigned short Size);
	virtual ~RCType();
	const String& GetName() const;
	DataType GetElementType() const;
	unsigned short GetSize() const;
	friend ostream& operator<<(ostream& os,RCType& r);
private:
	DataType iElementType;
	String iName;
	unsigned short iSize;
	};

// RCTypeArray

class RCTypeArray : public Array
	{
public:
	RCTypeArray();
	~RCTypeArray();
	String const& GetName(DataType ElementTypeSought) const;
	unsigned short GetSize(DataType ElementTypeSought) const;
	};

// RCTypeArrayIterator

class RCTypeArrayIterator : public ArrayIterator
	{
public:
	RCTypeArrayIterator(const RCTypeArray& c);
	RCType * operator()();
	};

#endif