Ignore:
Timestamp:
Apr 5, 2005, 5:37:54 PM (20 years ago)
Author:
ansari
Message:

1/ Correction petite erreur ds NDataBlock et recuperation de
MemoryObjectId a travers une fonction globale (static) ds AnyDataObj
2/ Ajout fonctions pour lister les classes PPersist handler ds ppersist.h .cc

Reza, 5 Avril 2005

File:
1 edited

Legend:

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

    r2615 r2657  
    88#include "anydataobj.h"
    99#include <iostream>
     10#include <iomanip>
    1011#include <typeinfo>
    1112
     
    105106//      class_typename should be typeid(DataObject).name(), to be
    106107//      used by POutPersist::PutDataObject() methods.
     108
     109//! Lists the registered PPersist handler classes and the corresponding class id.
     110void
     111PIOPersist::ListPPHandlers()
     112{
     113  cout << " PIOPersist::ListPPHandlers() - List of registered PPersist handler classes " << endl;
     114  map<string, uint_8>::iterator it;
     115  int k = 0;
     116  for (it = (*ppclassNameList).begin(); it != (*ppclassNameList).end(); it++) {
     117    cout << ++k << ":   " << (*it).first << "\n" << "          ClassId: Hex=  "
     118         << hex << (*it).second << "  (Dec= " << dec << (*it).second << ")" << endl;   
     119  }
     120}
     121
     122//! Lists the registered DataObj classes with the corresponding PPHandler name
     123void
     124PIOPersist::ListDataObjClasses()
     125{
     126  cout << " PIOPersist::ListDataObjClasses() : Registered DataObj class list " << endl;
     127  map<string, uint_8>::iterator it;
     128  int k = 0;
     129  for (it = (*dobjclassNameList).begin(); it != (*dobjclassNameList).end(); it++) {
     130    cout << ++k << "- "  << (*it).first << "  ->  " << getPPClassName((*it).second) << endl;
     131  }
     132}
    107133
    108134PIOPersist::ClassCreatorFunc
Note: See TracChangeset for help on using the changeset viewer.