source: Sophya/trunk/SophyaLib/SkyMap/fiolocalmap.h@ 1383

Last change on this file since 1383 was 842, checked in by ansari, 25 years ago

FIO premiere version

File size: 874 bytes
RevLine 
[842]1// G. Le Meur 04/2000
2
3#ifndef FIOLOCALMAP_SEEN
4#define FIOLOCALMAP_SEEN
5#include "sphericalmap.h"
6#include "localmap.h"
7#include "tvector.h"
8#include "ndatablock.h"
9
10#include "anydataobj.h"
11#include "ppersist.h"
12
13
14//
15// ------------- Classes pour la gestion de persistance --
16//
17
18namespace SOPHYA {
19
20//! Delegated objects for persitance management
21template <class T>
22class FIO_LocalMap : public PPersist
23{
24
25public:
26
27FIO_LocalMap();
28FIO_LocalMap(string const & filename);
29FIO_LocalMap(const LocalMap<T>& obj);
30FIO_LocalMap(LocalMap<T>* obj);
31virtual ~FIO_LocalMap();
32virtual AnyDataObj* DataObj();
33virtual void SetDataObj(AnyDataObj & o);
34inline operator LocalMap<T>() { return(*dobj); }
35
36protected :
37
38virtual void ReadSelf(PInPersist&);
39virtual void WriteSelf(POutPersist&) const;
40LocalMap<T>* dobj;
41bool ownobj;
42};
43
44} // Fin du namespace
45
46#endif
Note: See TracBrowser for help on using the repository browser.