source: XIOS/trunk/src/object.hpp @ 510

Last change on this file since 510 was 501, checked in by ymipsl, 10 years ago

Add licence copyright to all file ond directory src using the command :
svn propset -R copyright -F header_licence src

XIOS is now officialy under CeCILL licence

YM

  • 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
Line 
1#ifndef __XMLIO_CObject__
2#define __XMLIO_CObject__
3
4/// xios headers ///
5#include "xmlioserver_spl.hpp"
6
7namespace xios
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 ///
29//         bool operator==(const CObject & other) const;
30//         bool operator!=(const CObject & other) const;
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
55} // namespace xios
56
57#endif // __XMLIO_CObject__
58
Note: See TracBrowser for help on using the repository browser.