source: Sophya/trunk/SophyaPI/PIext/nomtmatvecadapter.h@ 1199

Last change on this file since 1199 was 1165, checked in by ercodmgr, 25 years ago

Extension de l'interface NObjMgrAdapter et ajout de DVList pour les variables globales ds NamedObjMgr - Reza 30/8/2000

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