| [314] | 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); | 
|---|
| [344] | 30 | virtual NTupleInterface*      GetNTupleInterface(bool& adel); | 
|---|
| [314] | 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(); | 
|---|
| [326] | 41 | virtual uint_4        NbLines() const ; | 
|---|
|  | 42 | virtual uint_4        NbColumns() const ; | 
|---|
|  | 43 | virtual r_8 *         GetLineD(int n) const ; | 
|---|
|  | 44 | virtual string        VarList_C(const char* nomx=NULL) const ; | 
|---|
| [314] | 45 | protected: | 
|---|
|  | 46 | StarList* mStl; | 
|---|
| [326] | 47 | mutable r_8 mRet[12]; | 
|---|
| [314] | 48 | }; | 
|---|
|  | 49 |  | 
|---|
|  | 50 |  | 
|---|
|  | 51 | #endif | 
|---|