commore  1.0.6-SNAPSHOT
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
Type.h
1 //
2 // Copyright (c) 2006-2007 Raphael David / CANTOR
3 //
4 
5 
6 #ifndef CMR_TYPE_INCLUDED
7 #define CMR_TYPE_INCLUDED
8 
9 #include <stddef.h>
10 
14 namespace commore
15 {
19  template< class T> class DefaultListAllocator;
20  template< class T> class CmrListAllocator;
21  template< class T> class CmrScalarListAllocator;
22  template<class T, class A = DefaultListAllocator<T> > class List;
23  template<class T, class A = DefaultListAllocator<T> > class Array;
24 
28  class AString;
29  class String;
30  class StringBuffer;
31  class Blob;
32  class TimePeriod;
33  class TimeDate;
34  class Tuple;
35  class Symbol;
36  typedef bool Bool;
37  typedef int Int;
38  #ifdef __MINGW32__
39  typedef long long Long;
40  #elif defined(WIN32)
41  typedef __int64 Long;
42  #else
43  typedef long long Long;
44  #endif
45  typedef float Float;
46  typedef double Double;
47  typedef List<AString, CmrListAllocator<AString> > ListAString;
48  typedef List<String, CmrListAllocator<String> > ListString;
49  typedef List<Int, CmrScalarListAllocator<Int> > ListInt;
50  typedef List<Bool, CmrScalarListAllocator<Bool> > ListBool;
51  typedef List<Long, CmrScalarListAllocator<Long> > ListLong;
52  typedef List<Float, CmrScalarListAllocator<Float> > ListFloat;
53  typedef List<Double, CmrScalarListAllocator<Double> > ListDouble;
54  typedef List<TimePeriod, CmrListAllocator<TimePeriod> > ListTimePeriod;
55  typedef List<TimeDate, CmrListAllocator<TimeDate> > ListTimeDate;
56  typedef List<Blob, CmrListAllocator<Blob> > ListBlob;
57  typedef List<Tuple, CmrListAllocator<Tuple> > ListTuple;
58  typedef List<Symbol, CmrListAllocator<Symbol> > ListSymbol;
59 
60 
64  typedef unsigned char Byte;
65  typedef char AChar;
66  typedef wchar_t Char;
67  typedef unsigned int UInt;
68  typedef short Short;
69  typedef unsigned short UShort;
70 #ifdef __MINGW32__
71  typedef unsigned long long ULong;
72 #elif defined(WIN32)
73  typedef unsigned __int64 ULong;
74 #else
75  typedef unsigned long long ULong;
76 #endif
77  typedef void* Pointer;
84 
94 
102 
107 
112 
116  class Path;
117  class Directory;
118  class CommBuffer;
119  class IBStream;
120  class OBStream;
121  class OBStreamFormat;
122  class Log;
123  class XmlParser;
124  class Dummy;
127 
131  enum Types
132  {
133  T_ANY = 0,
134  T_NO_TYPE = 1,
135 
136  T_BOOL = 2,
137  T_INT = 3,
138  T_LONG = 4,
139  T_FLOAT = 5,
140  T_DOUBLE = 6,
141 
142  T_ASTRING = 7,
143  T_STRING = 8,
144  T_BLOB = 9,
145  T_TIME_PERIOD = 10,
146  T_TIME_DATE = 11,
147  T_ARRAY_INT = 12,
148  T_ARRAY_LONG = 13,
149  T_ARRAY_FLOAT = 14,
150  T_ARRAY_DOUBLE = 15,
151 
152  T_TUPLE = 16,
153 
154  T_LIST_BOOL = 17,
155  T_LIST_INT = 18,
156  T_LIST_LONG = 19,
157  T_LIST_FLOAT = 20,
158  T_LIST_DOUBLE = 21,
159 
160  T_LIST_ASTRING = 22,
161  T_LIST_STRING = 23,
162  T_LIST_BLOB = 24,
163  T_LIST_TIME_PERIOD = 25,
164  T_LIST_TIME_DATE = 26,
165  T_LIST_ARRAY_INT = 27,
166  T_LIST_ARRAY_LONG = 28,
167  T_LIST_ARRAY_FLOAT = 29,
168  T_LIST_ARRAY_DOUBLE = 30,
169  T_LIST_TUPLE = 31,
170 
171  T_TABLE = 32,
172  T_LIST_TABLE = 33,
173 
174  T_BYTE,
175  T_ACHAR,
176  T_CHAR,
177  T_UINT,
178  T_ULONG,
179  T_SHORT,
180  T_USHORT,
181 
182  T_STRING_BUFFER,
183  T_SYMBOL,
184 
185  T_LIST_UINT,
186  T_LIST_ULONG,
187  T_LIST_SHORT,
188  T_LIST_USHORT,
189  T_LIST_STRING_BUFFER,
190  T_LIST_SYMBOL,
191 
192  T_PTR,
193 
194  T_LAST_TYPE_NUM
195  };
196 
197  const unsigned int npos = 0xFFFFFFFF;
198 }
199 
200 #endif
Definition: Directory.h:58
Definition: List.h:23
Definition: IOBStream.h:126
Definition: Error.h:35
Definition: Path.h:19
Definition: CommBuffer.h:28
Definition: Array.h:21
unsigned char Byte
Definition: Type.h:64
Definition: IOBStream.h:166
Definition: IOBStream.h:29
Types
Definition: Type.h:131