|
typedef std::pair< std::string, std::string > | atb |
|
Definition at line 26 of file element.
◆ atb
◆ element() [1/2]
tools::xml::element::element |
( |
const std::string & |
a_name, |
|
|
const std::vector< atb > & |
a_atbs, |
|
|
const std::string & |
a_value |
|
) |
| |
|
inline |
Definition at line 39 of file element.
43 mem::increment(s_class().c_str());
◆ ~element()
virtual tools::xml::element::~element |
( |
| ) |
|
|
inlinevirtual |
Definition at line 49 of file element.
51 mem::decrement(s_class().c_str());
◆ element() [2/2]
tools::xml::element::element |
( |
const element & |
a_from | ) |
|
|
inline |
Definition at line 55 of file element.
58 mem::increment(s_class().c_str());
◆ add_attribute()
void tools::xml::element::add_attribute |
( |
const std::string & |
a_name, |
|
|
const std::string & |
a_value |
|
) |
| |
|
inline |
◆ attribute_value() [1/2]
bool tools::xml::element::attribute_value |
( |
const std::string & |
a_atb, |
|
|
std::string & |
a_value |
|
) |
| const |
|
inline |
Definition at line 87 of file element.
89 if((*it).first==a_atb) {
90 a_value = (*it).second;
◆ attribute_value() [2/2]
template<class T >
bool tools::xml::element::attribute_value |
( |
const std::string & |
a_atb, |
|
|
T & |
a_value |
|
) |
| const |
|
inline |
Definition at line 99 of file element.
102 return to<T>(sv,a_value);
◆ attributes()
const std::vector<atb>& tools::xml::element::attributes |
( |
| ) |
const |
|
inline |
◆ cast()
virtual void* tools::xml::element::cast |
( |
cid |
a_class | ) |
const |
|
inlinevirtual |
◆ id_class()
static cid tools::xml::element::id_class |
( |
| ) |
|
|
inlinestatic |
◆ is_attribute()
bool tools::xml::element::is_attribute |
( |
const std::string & |
a_name | ) |
const |
|
inline |
Definition at line 76 of file element.
78 if((*it).first==a_name)
return true;
◆ name()
const std::string& tools::xml::element::name |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ remove_attributes()
void tools::xml::element::remove_attributes |
( |
const std::string & |
a_atb | ) |
|
|
inline |
Definition at line 118 of file element.
119 std::vector<atb>::iterator it;
121 if((*it).first==a_atb) {
◆ replace()
void tools::xml::element::replace |
( |
const std::string & |
a_old, |
|
|
const std::string & |
a_new |
|
) |
| |
|
inline |
◆ set_attribute_value()
bool tools::xml::element::set_attribute_value |
( |
const std::string & |
a_atb, |
|
|
const std::string & |
a_value |
|
) |
| |
|
inline |
Definition at line 106 of file element.
108 if((*it).first==a_atb) {
109 (*it).second = a_value;
◆ set_value()
void tools::xml::element::set_value |
( |
const std::string & |
a_value | ) |
|
|
inline |
◆ value()
const std::string& tools::xml::element::value |
( |
| ) |
const |
|
inline |
◆ m_atbs
std::vector<atb> tools::xml::element::m_atbs |
|
protected |
◆ m_name
std::string tools::xml::element::m_name |
|
protected |
◆ m_value
std::string tools::xml::element::m_value |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/xml/element