Changeset 269 in Sophya for trunk/SophyaLib/BaseTools/ppersist.cc


Ignore:
Timestamp:
Apr 27, 1999, 5:01:44 PM (26 years ago)
Author:
ansari
Message:

Persist<NDataBlock> Reza 27/04/99

File:
1 edited

Legend:

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

    r256 r269  
    3737
    3838MD5_CTX PIOPersist::ctx;
    39 PIOPersist::ClassList PIOPersist::classList;
    40 
     39PIOPersist::ClassList * PIOPersist::classList = NULL;   // $CHECK$ Reza 26/04/99
     40
     41//++
     42void
     43PIOPersist::Initialize()
     44//  Initialisation globale (objets statiques) $CHECK$ Reza 26/04/99
     45//--
     46{
     47classList = new PIOPersist::ClassList;
     48}
    4149
    4250//++
     
    5159//--
    5260{
    53   if (classList.size() && (classList.find(classId) != classList.end())) {
     61  if (classList->size() && (classList->find(classId) != classList->end())) {
    5462      cerr << "RegisterClass : Error, " << hex << classId << dec
    5563           << " already registered." << endl;
     
    5765    }
    5866 
    59   classList[classId] = f;
     67  (*classList)[classId] = f;
    6068}
    6169
     
    6472PIOPersist::FindCreatorFunc(uint_8 classId)
    6573{
    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"));
    6876  return (*i).second;
    6977}
Note: See TracChangeset for help on using the changeset viewer.