source: Sophya/trunk/SophyaPI/PIext/nomgadapter.h@ 1164

Last change on this file since 1164 was 1164, checked in by ercodmgr, 25 years ago

MAJ Makefile - Reza 30/8/2000

File size: 1.9 KB
Line 
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
20class NObjMgrAdapter {
21public:
22 NObjMgrAdapter(AnyDataObj* o);
23 virtual ~NObjMgrAdapter();
24
25 virtual NObjMgrAdapter* Clone(AnyDataObj* o);
26
27 // Returns the actual data-object
28 virtual AnyDataObj* GetDataObj();
29
30 // Returns the actual data-object type (class name)
31 virtual string GetDataObjType();
32
33 // Returns a new data-object, cloning the original object
34 virtual AnyDataObj* CloneDataObj();
35 virtual AnyDataObj* GetCopyObj(); // Methode obsolete - Devra etre remplace
36 // par CloneDataObj()
37
38 // Copies data from object o
39 virtual void CopyFrom(AnyDataObj* o);
40
41// Returns a string representation of the object
42 virtual string ToString();
43// Fills the object from a string
44 virtual void FillFromString();
45
46 virtual void ReadFits(string const & flnm);
47 virtual void SaveFits(string const & flnm);
48 virtual void SavePPF(POutPersist& s, string const & nom);
49
50 virtual void Print(ostream& os);
51 virtual PIDrawer* GetDrawer(string& dopt);
52 virtual P2DArrayAdapter* Get2DArray(string& dopt);
53
54// NTupleInterface* nti = GetNTupleInterface(adel)
55// Retourne un objet de type NTupleInterface (nti), ainsi que adel
56// si adel == true, le programme appelant doit faire delete de nti
57 virtual NTupleInterface* GetNTupleInterface(bool& adel);
58protected:
59 AnyDataObj* mObj;
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.