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

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

Ajout de cxxexecutor (Execution C++ en ligne ds piapp) - CMV+Reza 11/10/2000

File size: 2.2 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#include "generalfit.h"
16
17
18// Classe d'adaptateur d'objets de donnees pour la gestion d'objets
19// nommes (NamedObjMgr) de piapp
20
21class NObjMgrAdapter {
22public:
23 NObjMgrAdapter(AnyDataObj* o);
24 virtual ~NObjMgrAdapter();
25
26 virtual NObjMgrAdapter* Clone(AnyDataObj* o);
27
28 // Returns the actual data-object
29 virtual AnyDataObj* GetDataObj();
30
31 // Returns the actual data-object type (class name)
32 virtual string GetDataObjType();
33
34 // Returns a new data-object, cloning the original object
35 virtual AnyDataObj* CloneDataObj();
36
37 // Copies data from object o
38 virtual void CopyFrom(AnyDataObj* o);
39
40// Returns a string representation of the object
41 virtual string ToString();
42// Fills the object from a string
43 virtual void FillFromString();
44
45 virtual void ReadFits(string const & flnm);
46 virtual void SaveFits(string const & flnm);
47 virtual void SavePPF(POutPersist& s, string const & nom);
48
49 virtual void Print(ostream& os);
50 virtual PIDrawer* GetDrawer(string& dopt);
51 virtual P2DArrayAdapter* Get2DArray(string& dopt);
52
53// NTupleInterface* nti = GetNTupleInterface(adel)
54// Retourne un objet de type NTupleInterface (nti), ainsi que adel
55// si adel == true, le programme appelant doit faire delete de nti
56 virtual NTupleInterface* GetNTupleInterface(bool& adel);
57
58// Methode pour l'interface GeneralFit.
59// Si adel==true:
60// le programme appelant doit faire delete du GeneralFitData retourne
61 virtual GeneralFitData* GetGeneralFitData(bool& adel
62 ,GeneralFitData::FitErrType errtype=GeneralFitData::DefaultError
63 ,double errscale=1.,double errmin=0.
64 ,int i1=0,int i2=-1,int j1=0,int j2=-1);
65 virtual AnyDataObj* FitResidusObj(GeneralFit& mfit);
66 virtual AnyDataObj* FitFunctionObj(GeneralFit& mfit);
67
68protected:
69 AnyDataObj* mObj;
70};
71
72#endif
Note: See TracBrowser for help on using the repository browser.