Changeset 576 in Sophya for trunk/SophyaLib/BaseTools/ppersist.h


Ignore:
Timestamp:
Nov 16, 1999, 10:28:20 AM (26 years ago)
Author:
ansari
Message:

PPersist version SOPHYA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/ppersist.h

    r552 r576  
    317317    public:
    318318      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);
    322322      }
    323323    };
    324324 
    325 #define PPRegister(className) PPersistRegistrar<className>::Register();
     325#define PPRegister(className) PPersistRegistrar<className>::Register(#className);
    326326 
    327327} // namespace
Note: See TracChangeset for help on using the changeset viewer.