7 #ifndef __core_assertCore_h__ 8 #define __core_assertCore_h__ 13 FE_DL_EXPORT
void assertCore(sp<TypeMaster> spTypeMaster);
16 class FE_DL_EXPORT TypeInfoInteger :
public BaseType::Info
20 virtual String print(
void *instance)
22 T value= *(T *)instance;
24 string.sPrintf(
"%d",value);
28 virtual IWORD output(std::ostream &ostrm,
void *instance, t_serialMode mode)
32 T value = *(T *)instance;
33 ostrm.write((
char *)&value,
sizeof(T));
38 T value= *(T *)instance;
39 ostrm << std::dec << value;
44 virtual void input(std::istream &istrm,
void *instance, t_serialMode mode)
49 istrm.read((
char *)&value,
sizeof(T));
50 *(T *)instance = value;
55 *(T *)instance = value;
59 virtual void construct(
void *instance) { *(T *)instance=0; }
61 virtual IWORD iosize(
void) {
return sizeof(T); }
64 class FE_DL_EXPORT InfoU8 :
public TypeInfoInteger<U8>
67 virtual IWORD output(std::ostream &ostrm,
void *instance, t_serialMode mode);
68 virtual void input(std::istream &istrm,
void *instance, t_serialMode mode);
71 class FE_DL_EXPORT InfoU16 :
public TypeInfoInteger<U16>
74 virtual IWORD output(std::ostream &ostrm,
void *instance, t_serialMode mode);
75 virtual void input(std::istream &istrm,
void *instance, t_serialMode mode);
78 class FE_DL_EXPORT InfoI16 :
public TypeInfoInteger<I16>
81 virtual IWORD output(std::ostream &ostrm,
void *instance, t_serialMode mode);
82 virtual void input(std::istream &istrm,
void *instance, t_serialMode mode);
85 class FE_DL_EXPORT InfoU32 :
public TypeInfoInteger<U32>
88 virtual IWORD output(std::ostream &ostrm,
void *instance, t_serialMode mode);
89 virtual void input(std::istream &istrm,
void *instance, t_serialMode mode);
92 class FE_DL_EXPORT InfoI32 :
public TypeInfoInteger<I32>
95 virtual IWORD output(std::ostream &ostrm,
void *instance, t_serialMode mode);
96 virtual void input(std::istream &istrm,
void *instance, t_serialMode mode);
99 class FE_DL_EXPORT InfoU64 :
public TypeInfoInteger<U64>
102 virtual String print(
void *instance);
105 class FE_DL_EXPORT InfoI64 :
public TypeInfoInteger<I64>
108 virtual String print(
void *instance);
111 class FE_DL_EXPORT InfoIWORD :
public TypeInfoInteger<IWORD>
114 virtual IWORD output(std::ostream &ostrm,
void *instance, t_serialMode mode);
115 virtual void input(std::istream &istrm,
void *instance, t_serialMode mode);
118 class FE_DL_EXPORT InfoF32 :
public BaseType::Info
121 virtual IWORD output(std::ostream &ostrm,
void *instance, t_serialMode mode);
122 virtual void input(std::istream &istrm,
void *instance, t_serialMode mode);
123 virtual String print(
void *instance);
124 virtual void construct(
void *instance);
125 virtual IWORD iosize(
void);
128 class FE_DL_EXPORT InfoF64 :
public BaseType::Info
131 virtual IWORD output(std::ostream &ostrm,
void *instance, t_serialMode mode);
132 virtual void input(std::istream &istrm,
void *instance, t_serialMode mode);
133 virtual String print(
void *instance);
134 virtual void construct(
void *instance);
135 virtual IWORD iosize(
void);
138 class FE_DL_EXPORT InfoBool :
public BaseType::Info
141 virtual IWORD output(std::ostream &ostrm,
void *instance, t_serialMode mode);
142 virtual void input(std::istream &istrm,
void *instance, t_serialMode mode);
143 virtual String print(
void *instance);
144 virtual void construct(
void *instance);
145 virtual IWORD iosize(
void);
148 class FE_DL_EXPORT InfoVoid :
public BaseType::Info
151 virtual IWORD output(std::ostream &ostrm,
void *instance, t_serialMode mode);
152 virtual void input(std::istream &istrm,
void *instance, t_serialMode mode);
153 virtual String print(
void *instance);
154 virtual void construct(
void *instance);
155 virtual IWORD iosize(
void);
158 class FE_DL_EXPORT InfoVoidStar :
public BaseType::Info
161 virtual IWORD output(std::ostream &ostrm,
void *instance, t_serialMode mode);
162 virtual void input(std::istream &istrm,
void *instance, t_serialMode mode);
163 virtual String print(
void *instance);
164 virtual void construct(
void *instance);
165 virtual IWORD iosize(
void);
kernel
Definition: namespace.dox:3