source: XIOS/trunk/src/object.cpp @ 576

Last change on this file since 576 was 511, checked in by mhnguyen, 9 years ago

Seperating database of context on "client" side and "server" side

+) Add one more context in contex client in case of attached mode
+) Do some minor changements to make sure everything fine in case of attached mode
+) Replace buffer group with the new options

Test
+) On Curie
+) Connection mode: Attached and seperated
+) File mode: one and multiple
+) All tests passed

  • 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.3 KB
Line 
1#include "object.hpp"
2
3namespace xios
4{
5   /// ////////////////////// Définitions ////////////////////// ///
6
7   CObject::CObject(void)
8      : id(), IdDefined(false)
9   { /* Ne rien faire de plus */ }
10
11   CObject::CObject(const StdString & id)
12      : id(id), IdDefined(true)
13   { /* Ne rien faire de plus */ }
14
15   CObject::CObject(const CObject & object)
16      : id(object.id), IdDefined(object.IdDefined)
17   { /* Ne rien faire de plus */ }
18
19   CObject::~CObject(void)
20   { /* Ne rien faire de plus */ }
21
22   const StdString & CObject::getId(void) const
23   {
24      return (this->id);
25   }
26
27   const StdString& CObject::getIdServer()
28   {
29      return (this->id);
30   }
31
32   bool CObject::hasId(void) const
33   {
34      return (this->IdDefined);
35   }
36
37   void CObject::resetId(void)
38   {
39      this->IdDefined = false ;
40   }
41
42   void CObject::setId(const StdString & id)
43   {
44      this->id = id ;
45      this->IdDefined = true ;
46   }
47/*
48   bool CObject::operator==(const CObject & other) const
49   {
50      if(!this->hasId() || !other.hasId())
51         return (false);
52      return (this->id.compare(other.id) == 0);
53   }
54
55   bool CObject::operator!=(const CObject & other) const
56   {
57      return (!(*this == other));
58   }
59*/
60   StdOStream & operator << (StdOStream & os, const CObject & object)
61   {
62      os << object.toString();
63      return (os);
64   }
65
66} // namespace xios
Note: See TracBrowser for help on using the repository browser.