Last change
on this file since 702 was
591,
checked in by rlacroix, 9 years ago
|
Remove leftovers from the XMLIO age.
|
-
Property copyright set to
Software name : XIOS (Xml I/O Server) http://forge.ipsl.jussieu.fr/ioserver Creation date : January 2009 Licence : CeCCIL version2 see license file in root directory : Licence_CeCILL_V2-en.txt or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement) CNRS/IPSL (Institut Pierre Simon Laplace) Project Manager : Yann Meurdesoif yann.meurdesoif@cea.fr
|
File size:
1.4 KB
|
Rev | Line | |
---|
[591] | 1 | #ifndef __XIOS_CObject__ |
---|
| 2 | #define __XIOS_CObject__ |
---|
[219] | 3 | |
---|
[591] | 4 | /// XIOS headers /// |
---|
| 5 | #include "xios_spl.hpp" |
---|
[219] | 6 | |
---|
[335] | 7 | namespace xios |
---|
[219] | 8 | { |
---|
| 9 | /// ////////////////////// Déclarations ////////////////////// /// |
---|
| 10 | |
---|
| 11 | class CObject |
---|
| 12 | { |
---|
| 13 | public : |
---|
| 14 | |
---|
| 15 | /// Destructeur /// |
---|
| 16 | virtual ~CObject(void); |
---|
| 17 | |
---|
| 18 | /// Accesseurs /// |
---|
| 19 | const StdString & getId(void) const; |
---|
| 20 | |
---|
[511] | 21 | virtual const StdString& getIdServer(); |
---|
| 22 | |
---|
[219] | 23 | /// Mutateurs /// |
---|
| 24 | void resetId(void); |
---|
| 25 | void setId(const StdString & id); |
---|
| 26 | |
---|
| 27 | /// Tests /// |
---|
| 28 | bool hasId(void) const; |
---|
| 29 | |
---|
| 30 | /// Opérateurs /// |
---|
[369] | 31 | // bool operator==(const CObject & other) const; |
---|
| 32 | // bool operator!=(const CObject & other) const; |
---|
[219] | 33 | |
---|
| 34 | /// Flux /// |
---|
| 35 | friend StdOStream & operator << (StdOStream & os, const CObject & object); |
---|
| 36 | |
---|
| 37 | /// Autres /// |
---|
| 38 | virtual StdString toString(void) const = 0; |
---|
| 39 | virtual void fromString(const StdString & str) = 0; |
---|
| 40 | |
---|
| 41 | protected : |
---|
| 42 | |
---|
| 43 | /// Constructeurs /// |
---|
| 44 | CObject(void); |
---|
| 45 | explicit CObject(const StdString & id); |
---|
| 46 | CObject(const CObject & object); |
---|
| 47 | CObject(const CObject * const object); // Not implemented. |
---|
| 48 | |
---|
| 49 | private : |
---|
| 50 | |
---|
| 51 | /// Propriétés /// |
---|
| 52 | StdString id ; // identifiant de l'Object |
---|
| 53 | bool IdDefined ; // true si l'object est identifié, false sinon. |
---|
| 54 | |
---|
| 55 | }; // class CObject |
---|
| 56 | |
---|
[335] | 57 | } // namespace xios |
---|
[219] | 58 | |
---|
[591] | 59 | #endif // __XIOS_CObject__ |
---|
[219] | 60 | |
---|
Note: See
TracBrowser
for help on using the repository browser.