Changeset 576 in Sophya for trunk/SophyaLib/BaseTools/ppersist.h
- Timestamp:
- Nov 16, 1999, 10:28:20 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ppersist.h
r552 r576 317 317 public: 318 318 static PPersist* Create() {return new T();} 319 static void Register( ) {PIOPersist::RegisterClass(Hash(),Create);}320 static uint_8 Hash( ) {321 return PIOPersist::Hash( typeid(T).name());319 static void Register(string id) {PIOPersist::RegisterClass(Hash(id),Create);} 320 static uint_8 Hash(string id) { 321 return PIOPersist::Hash(id); 322 322 } 323 323 }; 324 324 325 #define PPRegister(className) PPersistRegistrar<className>::Register( );325 #define PPRegister(className) PPersistRegistrar<className>::Register(#className); 326 326 327 327 } // namespace
Note:
See TracChangeset
for help on using the changeset viewer.