| Last change
 on this file since 442 was             344, checked in by ercodmgr, 26 years ago | 
        
          | 
1/ Extension de fonctionalites de gestion de repertoires (Lock, ...)2/ Plus de NTupIntf_Adapter quand les objets heritent de NTupleInterface
 3/ Support pour affichage info texte, ds PINtuple et PIStarList
 
 | 
        
          | File size:
            1.3 KB | 
      
      
| Rev | Line |  | 
|---|
| [295] | 1 | // This may look like C code, but it is really -*- C++ -*- | 
|---|
|  | 2 | //  Adaptateur pour objets gere par   NamedObjMgr (piapp) | 
|---|
|  | 3 | //                                    Reza 05/99 | 
|---|
|  | 4 | //  LAL-IN2P3/CNRS               CEA-DAPNIA | 
|---|
|  | 5 |  | 
|---|
|  | 6 | #ifndef NOMGADAPTER_H_SEEN | 
|---|
|  | 7 | #define NOMGADAPTER_H_SEEN | 
|---|
|  | 8 |  | 
|---|
|  | 9 | #include "machdefs.h" | 
|---|
|  | 10 | #include "ppersist.h" | 
|---|
|  | 11 | #include "anydataobj.h" | 
|---|
|  | 12 | #include "pidrawer.h" | 
|---|
|  | 13 | #include "parradapter.h" | 
|---|
|  | 14 | #include "ntupintf.h" | 
|---|
|  | 15 |  | 
|---|
|  | 16 |  | 
|---|
|  | 17 | // Classe d'adaptateur d'objets de donnees pour la gestion d'objets | 
|---|
|  | 18 | // nommes (NamedObjMgr) de piapp | 
|---|
|  | 19 |  | 
|---|
|  | 20 | class NObjMgrAdapter { | 
|---|
|  | 21 | public: | 
|---|
|  | 22 | NObjMgrAdapter(AnyDataObj* o); | 
|---|
|  | 23 | virtual                       ~NObjMgrAdapter(); | 
|---|
|  | 24 |  | 
|---|
|  | 25 | virtual NObjMgrAdapter*       Clone(AnyDataObj* o); | 
|---|
|  | 26 |  | 
|---|
|  | 27 | virtual AnyDataObj*           GetDataObj(); | 
|---|
|  | 28 |  | 
|---|
|  | 29 | virtual void                  ReadFits(string const & flnm); | 
|---|
|  | 30 | virtual void                  SaveFits(string const & flnm); | 
|---|
|  | 31 | virtual void                  SavePPF(POutPersist& s, string const & nom); | 
|---|
|  | 32 |  | 
|---|
|  | 33 | virtual void                  Print(ostream& os); | 
|---|
|  | 34 | virtual PIDrawer*             GetDrawer(string& dopt); | 
|---|
|  | 35 | virtual P2DArrayAdapter*      Get2DArray(string& dopt); | 
|---|
| [344] | 36 |  | 
|---|
|  | 37 | // NTupleInterface* nti = GetNTupleInterface(adel) | 
|---|
|  | 38 | // Retourne un objet de type NTupleInterface (nti), ainsi que adel | 
|---|
|  | 39 | // si adel == true, le programme appelant doit faire delete de nti | 
|---|
|  | 40 | virtual NTupleInterface*      GetNTupleInterface(bool& adel); | 
|---|
| [295] | 41 | protected: | 
|---|
|  | 42 | AnyDataObj* mObj; | 
|---|
|  | 43 | }; | 
|---|
|  | 44 |  | 
|---|
|  | 45 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.