|
| XAttrib (const std::string &str) |
|
| XAttrib (const char *_name, const char *_value) |
|
std::string | toString () const |
|
Definition at line 29 of file XML.h.
◆ XAttrib() [1/3]
◆ XAttrib() [2/3]
XAttrib::XAttrib |
( |
const std::string & |
str | ) |
|
Definition at line 73 of file XML.cpp.
73 {
74 size_t index = str.find('=');
75 name = str.substr(0, index);
76 value = str.substr(index + 2, str.substr(index + 2).size() -
77 1);
78}
◆ XAttrib() [3/3]
XAttrib::XAttrib |
( |
const char * |
_name, |
|
|
const char * |
_value |
|
) |
| |
Definition at line 80 of file XML.cpp.
80 {
81 this->name = std::string(_name);
82 this->value = std::string(_value);
83}
◆ toString()
std::string XAttrib::toString |
( |
| ) |
const |
Definition at line 85 of file XML.cpp.
85 {
86 return (name + "=\"" + value + "\"");
87}
◆ name
std::string XAttrib::name |
Definition at line 31 of file XML.h.
◆ value
std::string XAttrib::value |
Definition at line 32 of file XML.h.
The documentation for this class was generated from the following files: