Go to the documentation of this file.
4 #ifndef tools_xml_element
5 #define tools_xml_element
13 #include "../S_STRING"
33 if(
void* p = cmp_cast<element>(
this,a_class)) {
return p;}
37 typedef std::pair<std::string,std::string>
atb;
40 const std::vector<atb>& a_atbs,
41 const std::string& a_value){
43 mem::increment(s_class().c_str());
51 mem::decrement(s_class().c_str());
58 mem::increment(s_class().c_str());
78 if((*it).first==a_name)
return true;
82 void add_attribute(
const std::string& a_name,
const std::string& a_value){
89 if((*it).first==a_atb) {
90 a_value = (*it).second;
102 return to<T>(sv,a_value);
108 if((*it).first==a_atb) {
109 (*it).second = a_value;
119 std::vector<atb>::iterator it;
121 if((*it).first==a_atb) {
129 void replace(
const std::string& a_old,
const std::string& a_new) {
#define TOOLS_SCLASS(a_name)
#define tools_vforit(a__T, a__v, a__it)
#define tools_vforcit(a__T, a__v, a__it)