123456789101112131415161718192021222324252627282930313233343536373839 |
- #include <ls_std/io/xml/XMLAttribute.hpp>
- ls_std::XMLAttribute::XMLAttribute(std::string _name) : ls_std::Class("XMLAttribute"),
- name(std::move(_name))
- {}
- std::string ls_std::XMLAttribute::getName()
- {
- return this->name;
- }
- std::string ls_std::XMLAttribute::getValue()
- {
- return this->value;
- }
- void ls_std::XMLAttribute::setName(std::string _name)
- {
- this->name = std::move(_name);
- }
- void ls_std::XMLAttribute::setValue(std::string _value)
- {
- this->value = std::move(_value);
- }
- std::string ls_std::XMLAttribute::toXML()
- {
- return this->name + "=\"" + this->value + "\"";
- }
|