XMLAttribute.cpp 725 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-09-23
  6. * Changed: 2020-09-23
  7. *
  8. * */
  9. #include "XMLAttribute.hpp"
  10. ls_std::XMLAttribute::XMLAttribute() : Class("XMLAttribute")
  11. {}
  12. std::string ls_std::XMLAttribute::getName()
  13. {
  14. return this->name;
  15. }
  16. std::string ls_std::XMLAttribute::getValue()
  17. {
  18. return this->value;
  19. }
  20. void ls_std::XMLAttribute::setName(std::string _name)
  21. {
  22. this->name = std::move(_name);
  23. }
  24. void ls_std::XMLAttribute::setValue(std::string _value)
  25. {
  26. this->value = std::move(_value);
  27. }
  28. std::string ls_std::XMLAttribute::toXML()
  29. {
  30. return this->name + "=\"" + this->value + "\"";
  31. }