Last change
on this file since 3722 was 2610, checked in by ansari, 21 years ago |
Ajout classe SphereECP<T> avec sa gestionnaire PPersist - Reza , 7 Septembre 2004
|
File size:
1.3 KB
|
Line | |
---|
1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
2 | // Gestion de persistance PPF pour les sphereECP
|
---|
3 | // R. Ansari, Septembre 2004
|
---|
4 |
|
---|
5 | #ifndef FIOSPHEREECP_SEEN
|
---|
6 | #define FIOSPHEREECP_SEEN
|
---|
7 |
|
---|
8 | #include "sphereecp.h"
|
---|
9 | #include "ppersist.h"
|
---|
10 |
|
---|
11 |
|
---|
12 | namespace SOPHYA {
|
---|
13 |
|
---|
14 | template <class T>
|
---|
15 | class FIO_SphereECP : public PPersist
|
---|
16 | {
|
---|
17 | public:
|
---|
18 |
|
---|
19 | FIO_SphereECP();
|
---|
20 | FIO_SphereECP(string const & filename);
|
---|
21 | FIO_SphereECP(const SphereECP<T>& obj);
|
---|
22 | FIO_SphereECP(SphereECP<T>* obj);
|
---|
23 | virtual ~FIO_SphereECP();
|
---|
24 | virtual AnyDataObj* DataObj();
|
---|
25 | void SetDataObj(AnyDataObj & o);
|
---|
26 | inline operator SphereECP<T>() { return(*dobj); }
|
---|
27 |
|
---|
28 | protected :
|
---|
29 |
|
---|
30 | virtual void ReadSelf(PInPersist&);
|
---|
31 | virtual void WriteSelf(POutPersist&) const;
|
---|
32 | SphereECP<T>* dobj;
|
---|
33 | bool ownobj;
|
---|
34 | };
|
---|
35 |
|
---|
36 | /*! \ingroup SkyMap \fn operator<<(POutPersist&,SphereECP<T>&)
|
---|
37 | \brief Write SphereECP \b obj into POutPersist stream \b os */
|
---|
38 | template <class T>
|
---|
39 | inline POutPersist& operator << (POutPersist& os, SphereECP<T> & obj)
|
---|
40 | { FIO_SphereECP<T> fio(&obj); fio.Write(os); return(os); }
|
---|
41 |
|
---|
42 | /*! \ingroup SkyMap \fn operator>>(PInPersist&,SphereECP<T>&)
|
---|
43 | \brief Read SphereECP \b obj from PInPersist stream \b os */
|
---|
44 | template <class T>
|
---|
45 | inline PInPersist& operator >> (PInPersist& is, SphereECP<T> & obj)
|
---|
46 | { FIO_SphereECP<T> fio(&obj); is.SkipToNextObject(); fio.Read(is); return(is); }
|
---|
47 |
|
---|
48 |
|
---|
49 | } // Fin du namespace
|
---|
50 |
|
---|
51 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.