Changeset 222 for cpp/frams/util/extvalue.h
- Timestamp:
- 04/11/14 23:39:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/util/extvalue.h
r205 r222 160 160 const char* deserialize(const char* in);//< @return first character after the succesfully parsed string or NULL if failed 161 161 const char* deserialize_inner(const char* in); 162 static PtrListTempl<ParamInterface*> deserializable_classes;163 162 static ParamInterface *findDeserializableClass(const char* name); 164 static void initDeserializableClasses(); 163 static PtrListTempl<ParamInterface*> &getDeserializableClasses(); 164 template<typename T> class AddDeserializable 165 { 166 public: 167 AddDeserializable() {ExtValue::getDeserializableClasses()+=&T::getStaticParam();} 168 }; 169 165 170 static SString format(SString& fmt,const ExtValue **values,int count); 166 171 … … 188 193 }; 189 194 195 #define REGISTER_DESERIALIZABLE(name) ExtValue::AddDeserializable<name> deserializable_autoinit_ ## name; 190 196 191 197 #endif
Note: See TracChangeset
for help on using the changeset viewer.