Last change
on this file since 390 was
369,
checked in by ymipsl, 12 years ago
|
Major Update
- redesign Type and attribute manipulation
- add enumerate type and attribute
- use blitz class array instead of boost class array
YM
|
File size:
1.4 KB
|
Rev | Line | |
---|
[219] | 1 | #ifndef __XMLIO_CObject__ |
---|
| 2 | #define __XMLIO_CObject__ |
---|
| 3 | |
---|
[335] | 4 | /// xios headers /// |
---|
[219] | 5 | #include "xmlioserver_spl.hpp" |
---|
| 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 | |
---|
| 21 | /// Mutateurs /// |
---|
| 22 | void resetId(void); |
---|
| 23 | void setId(const StdString & id); |
---|
| 24 | |
---|
| 25 | /// Tests /// |
---|
| 26 | bool hasId(void) const; |
---|
| 27 | |
---|
| 28 | /// Opérateurs /// |
---|
[369] | 29 | // bool operator==(const CObject & other) const; |
---|
| 30 | // bool operator!=(const CObject & other) const; |
---|
[219] | 31 | |
---|
| 32 | /// Flux /// |
---|
| 33 | friend StdOStream & operator << (StdOStream & os, const CObject & object); |
---|
| 34 | |
---|
| 35 | /// Autres /// |
---|
| 36 | virtual StdString toString(void) const = 0; |
---|
| 37 | virtual void fromString(const StdString & str) = 0; |
---|
| 38 | |
---|
| 39 | protected : |
---|
| 40 | |
---|
| 41 | /// Constructeurs /// |
---|
| 42 | CObject(void); |
---|
| 43 | explicit CObject(const StdString & id); |
---|
| 44 | CObject(const CObject & object); |
---|
| 45 | CObject(const CObject * const object); // Not implemented. |
---|
| 46 | |
---|
| 47 | private : |
---|
| 48 | |
---|
| 49 | /// Propriétés /// |
---|
| 50 | StdString id ; // identifiant de l'Object |
---|
| 51 | bool IdDefined ; // true si l'object est identifié, false sinon. |
---|
| 52 | |
---|
| 53 | }; // class CObject |
---|
| 54 | |
---|
[335] | 55 | } // namespace xios |
---|
[219] | 56 | |
---|
| 57 | #endif // __XMLIO_CObject__ |
---|
| 58 | |
---|
Note: See
TracBrowser
for help on using the repository browser.