source: Sophya/trunk/SophyaPI/PIext/nomskymapadapter.h@ 585

Last change on this file since 585 was 585, checked in by ercodmgr, 26 years ago

Modifs pour SOPHYA , TMatrix, PixelMap, ... - Suite - Reza 17/11/99

File size: 1.6 KB
RevLine 
[585]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
19template <class T>
20class NOMAdapter_PixelMap : public NObjMgrAdapter {
21public:
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
36protected:
37 PixelMap<T>* mMap;
38};
39
40// Class Interface NTuple pour PixelMap<T>
41
42template <class T>
43class NTupInt_PixelMap : public NTupleInterface {
44public:
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 ;
51protected:
52 PixelMap<T>* mMap;
53 mutable r_8 mRet[8];
54};
55
56
57#endif
Note: See TracBrowser for help on using the repository browser.