Changeset 269 in Sophya for trunk/SophyaLib/BaseTools/ppersist.cc
- Timestamp:
- Apr 27, 1999, 5:01:44 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ppersist.cc
r256 r269 37 37 38 38 MD5_CTX PIOPersist::ctx; 39 PIOPersist::ClassList PIOPersist::classList; 40 39 PIOPersist::ClassList * PIOPersist::classList = NULL; // $CHECK$ Reza 26/04/99 40 41 //++ 42 void 43 PIOPersist::Initialize() 44 // Initialisation globale (objets statiques) $CHECK$ Reza 26/04/99 45 //-- 46 { 47 classList = new PIOPersist::ClassList; 48 } 41 49 42 50 //++ … … 51 59 //-- 52 60 { 53 if (classList .size() && (classList.find(classId) != classList.end())) {61 if (classList->size() && (classList->find(classId) != classList->end())) { 54 62 cerr << "RegisterClass : Error, " << hex << classId << dec 55 63 << " already registered." << endl; … … 57 65 } 58 66 59 classList[classId] = f;67 (*classList)[classId] = f; 60 68 } 61 69 … … 64 72 PIOPersist::FindCreatorFunc(uint_8 classId) 65 73 { 66 ClassList::iterator i = classList .find(classId);67 if (i == classList .end()) throw(NotFoundExc("PIOPersist::FindCreatorFunc"));74 ClassList::iterator i = classList->find(classId); 75 if (i == classList->end()) throw(NotFoundExc("PIOPersist::FindCreatorFunc")); 68 76 return (*i).second; 69 77 }
Note:
See TracChangeset
for help on using the changeset viewer.