1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
2 | // Adaptateur d objets (pour NamedObjMgr) pour Histos/NTuple
|
---|
3 | // Reza 05/99
|
---|
4 | // LAL-IN2P3/CNRS CEA-DAPNIA
|
---|
5 |
|
---|
6 | #ifndef NOMSTLISTADAPTER_H_SEEN
|
---|
7 | #define NOMSTLISTADAPTER_H_SEEN
|
---|
8 |
|
---|
9 | #include "nomgadapter.h"
|
---|
10 | #include "stlist.h"
|
---|
11 |
|
---|
12 |
|
---|
13 | //-------------------------------------------------------------------------
|
---|
14 | // Class Adaptateur d'objet (Pour NamedObjMgr) d'objet StarList
|
---|
15 | //-------------------------------------------------------------------------
|
---|
16 |
|
---|
17 | class NOMAdapter_StarList : public NObjMgrAdapter {
|
---|
18 | public:
|
---|
19 | NOMAdapter_StarList(StarList* stl = NULL);
|
---|
20 | virtual ~NOMAdapter_StarList();
|
---|
21 |
|
---|
22 | virtual NObjMgrAdapter* Clone(AnyDataObj* o);
|
---|
23 |
|
---|
24 | // virtual void ReadFits(string const & flnm);
|
---|
25 | // virtual void SaveFits(string const & flnm);
|
---|
26 | virtual void SavePPF(POutPersist& s, string const & nom);
|
---|
27 |
|
---|
28 | virtual void Print(ostream& os);
|
---|
29 | virtual PIDrawer* GetDrawer(string& dopt);
|
---|
30 | virtual NTupleInterface* GetNTupleInterface();
|
---|
31 |
|
---|
32 | protected:
|
---|
33 | StarList* mStl;
|
---|
34 | };
|
---|
35 |
|
---|
36 | // Class Interface NTuple pour StarList
|
---|
37 | class NTupInt_StarList : public NTupleInterface {
|
---|
38 | public:
|
---|
39 | NTupInt_StarList(StarList* stl);
|
---|
40 | virtual ~NTupInt_StarList();
|
---|
41 | virtual uint_4 NbLines();
|
---|
42 | virtual uint_4 NbColumns();
|
---|
43 | virtual r_8 * GetLineD(int n);
|
---|
44 | virtual string VarList_C(const char* nomx=NULL);
|
---|
45 | protected:
|
---|
46 | StarList* mStl;
|
---|
47 | r_8 mRet[12];
|
---|
48 | };
|
---|
49 |
|
---|
50 |
|
---|
51 | #endif
|
---|