source: XMLIO_V2/dev/dev_rv/src/attribute.cpp @ 141

Last change on this file since 141 was 141, checked in by hozdoba, 13 years ago

Mise à jour depuis un autre dépôt

File size: 910 bytes
Line 
1#include "attribute.hpp"
2
3namespace xmlioserver
4{
5   namespace tree
6   {
7      /// ////////////////////// Définitions ////////////////////// ///
8      CAttribute::CAttribute(const StdString & id)
9         : CObject(id)
10         , value()
11      { /* Ne rien faire de plus */ }
12
13      CAttribute::CAttribute(const CAttribute & attribut)
14         : CObject(attribut.getId())
15      { this->value = attribut.getAnyValue(); }
16
17      const boost::any & CAttribute::getAnyValue(void) const
18      { return (this->value); }
19
20
21      void CAttribute::setAnyValue(const boost::any & value)
22      { this->value = value; }
23
24      CAttribute::~CAttribute(void)
25      { /* Ne rien faire de plus */ }
26
27      bool CAttribute::isEmpty(void) const
28      { return (this->value.empty()); }
29
30      const StdString & CAttribute::getName(void) const
31      { return (this->getId()); }
32
33   } // namespace tree
34} // namespace xmlioserver
Note: See TracBrowser for help on using the repository browser.