Last change
on this file since 1265 was
219,
checked in by hozdoba, 13 years ago
|
Préparation nouvelle arborescence
|
File size:
1.3 KB
|
Line | |
---|
1 | #include "attribute.hpp" |
---|
2 | |
---|
3 | namespace 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 | { |
---|
16 | this->value = attribut.getAnyValue(); |
---|
17 | } |
---|
18 | |
---|
19 | CAttribute::~CAttribute(void) |
---|
20 | { /* Ne rien faire de plus */ } |
---|
21 | |
---|
22 | ///-------------------------------------------------------------- |
---|
23 | |
---|
24 | const boost::any & CAttribute::getAnyValue(void) const |
---|
25 | { |
---|
26 | return (this->value); |
---|
27 | } |
---|
28 | |
---|
29 | |
---|
30 | void CAttribute::setAnyValue(const boost::any & value) |
---|
31 | { |
---|
32 | this->value = value; |
---|
33 | } |
---|
34 | |
---|
35 | void CAttribute::clear(void) |
---|
36 | { |
---|
37 | this->value = boost::any(); |
---|
38 | } |
---|
39 | |
---|
40 | //--------------------------------------------------------------- |
---|
41 | |
---|
42 | bool CAttribute::isEmpty(void) const |
---|
43 | { |
---|
44 | return (this->value.empty()); |
---|
45 | } |
---|
46 | |
---|
47 | const StdString & CAttribute::getName(void) const |
---|
48 | { |
---|
49 | return (this->getId()); |
---|
50 | } |
---|
51 | |
---|
52 | ///-------------------------------------------------------------- |
---|
53 | |
---|
54 | } // namespace tree |
---|
55 | } // namespace xmlioserver |
---|
Note: See
TracBrowser
for help on using the repository browser.