1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
2 | // Adaptateur d objets (pour NamedObjMgr) pour les classes
|
---|
3 | // PixelMap/SphericalMap/LocalMap de Sophya
|
---|
4 | // Reza 11/99
|
---|
5 | // LAL-IN2P3/CNRS CEA-DAPNIA
|
---|
6 |
|
---|
7 | #ifndef NOMSKYMAPADAPTER_H_SEEN
|
---|
8 | #define NOMSKYMAPADAPTER_H_SEEN
|
---|
9 |
|
---|
10 | #include "nomgadapter.h"
|
---|
11 | #include "pixelmap.h"
|
---|
12 |
|
---|
13 |
|
---|
14 |
|
---|
15 | //----------------------------------------------------------------
|
---|
16 | // Class Adaptateur d'objet (Pour NamedObjMgr) d'objet PixelMap<T>
|
---|
17 | //----------------------------------------------------------------
|
---|
18 |
|
---|
19 | template <class T>
|
---|
20 | class NOMAdapter_PixelMap : public NObjMgrAdapter {
|
---|
21 | public:
|
---|
22 | NOMAdapter_PixelMap(PixelMap<T>* m = NULL);
|
---|
23 | virtual ~NOMAdapter_PixelMap();
|
---|
24 |
|
---|
25 | virtual NObjMgrAdapter* Clone(AnyDataObj* o);
|
---|
26 | virtual AnyDataObj* GetCopyObj();
|
---|
27 |
|
---|
28 | // virtual void ReadFits(string const & flnm);
|
---|
29 | // virtual void SaveFits(string const & flnm);
|
---|
30 | virtual void SavePPF(POutPersist& s, string const & nom);
|
---|
31 |
|
---|
32 | virtual void Print(ostream& os);
|
---|
33 | virtual P2DArrayAdapter* Get2DArray(string& dopt);
|
---|
34 | virtual NTupleInterface* GetNTupleInterface(bool& adel);
|
---|
35 |
|
---|
36 | protected:
|
---|
37 | PixelMap<T>* mMap;
|
---|
38 | };
|
---|
39 |
|
---|
40 | // Class Interface NTuple pour PixelMap<T>
|
---|
41 |
|
---|
42 | template <class T>
|
---|
43 | class NTupInt_PixelMap : public NTupleInterface {
|
---|
44 | public:
|
---|
45 | NTupInt_PixelMap(PixelMap<T>* m);
|
---|
46 | virtual ~NTupInt_PixelMap();
|
---|
47 | virtual uint_4 NbLines() const ;
|
---|
48 | virtual uint_4 NbColumns() const ;
|
---|
49 | virtual r_8 * GetLineD(int n) const ;
|
---|
50 | virtual string VarList_C(const char* nomx=NULL) const ;
|
---|
51 | protected:
|
---|
52 | PixelMap<T>* mMap;
|
---|
53 | mutable r_8 mRet[8];
|
---|
54 | };
|
---|
55 |
|
---|
56 |
|
---|
57 | #endif
|
---|