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

Last change on this file since 2427 was 2383, checked in by ansari, 22 years ago

Ajout methode GetInfoString() aux ObjAdapter + attributs de gestion de position de stat pour PINtuple/PIHisto + positionnement par defaut de stat (statposoff=) lors de disp same - Reza 16/5/2003

File size: 2.4 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(bool share=false);
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// Returns a string with synthetic information about the object (lev-> Level of details)
46 virtual string GetInfoString(int lev=0);
47
48 virtual void ReadFits(string const & flnm);
49 virtual void SaveFits(string const & flnm);
50 virtual void SavePPF(POutPersist& s, string const & nom);
51
52 virtual void Print(ostream& os);
53 virtual PIDrawer* GetDrawer(string& dopt);
54 virtual P2DArrayAdapter* Get2DArray(string& dopt);
55
56// NTupleInterface* nti = GetNTupleInterface(adel)
57// Retourne un objet de type NTupleInterface (nti), ainsi que adel
58// si adel == true, le programme appelant doit faire delete de nti
59 virtual NTupleInterface* GetNTupleInterface(bool& adel);
60
61// Methode pour l'interface GeneralFit.
62// Si adel==true:
63// le programme appelant doit faire delete du GeneralFitData retourne
64 virtual GeneralFitData* GetGeneralFitData(bool& adel
65 ,GeneralFitData::FitErrType errtype=GeneralFitData::DefaultError
66 ,double errscale=1.,double errmin=0.
67 ,int i1=0,int i2=-1,int j1=0,int j2=-1);
68 virtual AnyDataObj* FitResidusObj(GeneralFit& mfit);
69 virtual AnyDataObj* FitFunctionObj(GeneralFit& mfit);
70
71protected:
72 AnyDataObj* mObj;
73};
74
75#endif
Note: See TracBrowser for help on using the repository browser.