#ifndef ROOT_TDataType
#define ROOT_TDataType
#ifndef ROOT_TDictionary
#include "TDictionary.h"
#endif
enum EDataType {
kChar_t = 1, kUChar_t = 11, kShort_t = 2, kUShort_t = 12,
kInt_t = 3, kUInt_t = 13, kLong_t = 4, kULong_t = 14,
kFloat_t = 5, kDouble_t = 8, kDouble32_t = 9, kchar = 10,
kBool_t = 18, kLong64_t = 16, kULong64_t = 17, kOther_t = -1,
kNoType_t = 0, kFloat16_t= 19,
kCounter = 6, kCharStar = 7, kBits = 15 ,
kVoid_t = 20,
kDataTypeAliasUnsigned_t = 21,
kNumDataTypes
};
class TDataType : public TDictionary {
private:
TypedefInfo_t *fInfo;
Int_t fSize;
EDataType fType;
Long_t fProperty;
TString fTrueName;
static TDataType* fgBuiltins[kNumDataTypes];
void CheckInfo();
void SetType(const char *name);
protected:
TDataType(const TDataType&);
TDataType& operator=(const TDataType&);
public:
TDataType(TypedefInfo_t *info = 0);
TDataType(const char *typenam);
virtual ~TDataType();
Int_t Size() const;
Int_t GetType() const { return (Int_t)fType; }
const char *GetTypeName() const;
const char *GetFullTypeName() const;
const char *AsString(void *buf) const;
Long_t Property() const;
static const char *GetTypeName(EDataType type);
static TDataType *GetDataType(EDataType type);
static EDataType GetType(const type_info &typeinfo);
static void AddBuiltins(TCollection* types);
ClassDef(TDataType,0)
};
#endif