#include <vebLegacy.h>
Public Member Functions | |
ConfItem (tString const &value) | |
Basic constructor. | |
ConfItem (ConfItem const &other) | |
Copy constructor. | |
void | operator= (ConfItem const &other) |
overloaded assignment operator | |
bool | Good () const |
Was the configuration item found? | |
Base * | copy (void) const |
virtual | ~ConfItem () |
virtual Variant | GetValue (void) const |
Returns the value in its native format. | |
virtual tString | GetString (Base const *other=0) const |
Private Member Functions | |
tString | Read () const |
Reads the value from the configuration item. | |
Private Attributes | |
tConfItemBase * | m_value |
pointer to the configuration item that contains the value |
Definition at line 136 of file vebLegacy.h.
vValue::Expr::Bindings::Legacy::ConfItem::ConfItem | ( | tString const & | value | ) |
Basic constructor.
Searches the right configuration item and uses it if it finds it
value | the name of the configuration item to be searched for |
Definition at line 50 of file vebLegacy.cpp.
Referenced by copy().
00050 : 00051 Base(), 00052 m_value(tConfItemBase::FindConfigItem(value)) 00053 { }
vValue::Expr::Bindings::Legacy::ConfItem::ConfItem | ( | ConfItem const & | other | ) |
virtual vValue::Expr::Bindings::Legacy::ConfItem::~ConfItem | ( | ) | [inline, virtual] |
tString vValue::Expr::Bindings::Legacy::ConfItem::Read | ( | ) | const [private] |
Reads the value from the configuration item.
Reads from the Configuration item
Definition at line 41 of file vebLegacy.cpp.
References m_value, tASSERT, and tConfItemBase::WriteVal().
Referenced by GetString().
00041 { 00042 tASSERT(m_value); 00043 std::ostringstream ret(""); 00044 m_value->WriteVal(ret); 00045 return(ret.str()); 00046 }
void vValue::Expr::Bindings::Legacy::ConfItem::operator= | ( | ConfItem const & | other | ) |
overloaded assignment operator
Does nothing different than the default assignment operator, but gets rid of a compiler warning
other | the ConfItem to be copied |
Definition at line 70 of file vebLegacy.cpp.
References m_value.
00070 { 00071 this->Base::operator=(other); 00072 m_value=other.m_value; 00073 }
bool vValue::Expr::Bindings::Legacy::ConfItem::Good | ( | ) | const |
Was the configuration item found?
Tests if the search for the right configuration item at construction time was successful
Definition at line 77 of file vebLegacy.cpp.
References m_value.
00077 { 00078 return m_value != 0; 00079 }
Base * vValue::Expr::Bindings::Legacy::ConfItem::copy | ( | void | ) | const [virtual] |
Overwritten copy function
Reimplemented from vValue::Expr::Core::Base.
Definition at line 64 of file vebLegacy.cpp.
References ConfItem().
00064 { 00065 return new ConfItem(*this); 00066 }
Variant vValue::Expr::Bindings::Legacy::ConfItem::GetValue | ( | void | ) | const [virtual] |
Returns the value in its native format.
Reimplemented from vValue::Expr::Core::Base.
Definition at line 81 of file vebLegacy.cpp.
References GetString().
00081 { 00082 return GetString(); 00083 }
tString vValue::Expr::Bindings::Legacy::ConfItem::GetString | ( | Base const * | other = 0 |
) | const [virtual] |
Reads from the configuration item
Reimplemented from vValue::Expr::Core::Base.
Definition at line 87 of file vebLegacy.cpp.
References vValue::Expr::Core::Base::Output(), and Read().
Referenced by GetValue().
pointer to the configuration item that contains the value
Definition at line 137 of file vebLegacy.h.
Referenced by Good(), operator=(), and Read().