Last change
on this file since 679 was
511,
checked in by mhnguyen, 10 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
|
Rev | Line | |
---|
[219] | 1 | #include "object.hpp" |
---|
| 2 | |
---|
[335] | 3 | namespace xios |
---|
[219] | 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 | |
---|
[511] | 22 | const StdString & CObject::getId(void) const |
---|
| 23 | { |
---|
[219] | 24 | return (this->id); |
---|
| 25 | } |
---|
| 26 | |
---|
[511] | 27 | const StdString& CObject::getIdServer() |
---|
| 28 | { |
---|
| 29 | return (this->id); |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | bool CObject::hasId(void) const |
---|
| 33 | { |
---|
[219] | 34 | return (this->IdDefined); |
---|
| 35 | } |
---|
| 36 | |
---|
[511] | 37 | void CObject::resetId(void) |
---|
| 38 | { |
---|
[219] | 39 | this->IdDefined = false ; |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | void CObject::setId(const StdString & id) |
---|
[511] | 43 | { |
---|
[219] | 44 | this->id = id ; |
---|
| 45 | this->IdDefined = true ; |
---|
| 46 | } |
---|
[369] | 47 | /* |
---|
[219] | 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 |
---|
[511] | 56 | { |
---|
[219] | 57 | return (!(*this == other)); |
---|
| 58 | } |
---|
[369] | 59 | */ |
---|
[219] | 60 | StdOStream & operator << (StdOStream & os, const CObject & object) |
---|
[511] | 61 | { |
---|
[219] | 62 | os << object.toString(); |
---|
| 63 | return (os); |
---|
| 64 | } |
---|
| 65 | |
---|
[335] | 66 | } // namespace xios |
---|
Note: See
TracBrowser
for help on using the repository browser.