XMLAttribute.hpp 727 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-09-23
  6. * Changed: 2020-11-20
  7. *
  8. * */
  9. #ifndef LS_STD_XML_ATTRIBUTE_HPP
  10. #define LS_STD_XML_ATTRIBUTE_HPP
  11. #include <ls_std/base/Class.hpp>
  12. #include <string>
  13. namespace ls_std {
  14. class XMLAttribute : public Class {
  15. public:
  16. explicit XMLAttribute(std::string _name);
  17. ~XMLAttribute() = default;
  18. std::string getName();
  19. std::string getValue();
  20. void setName(std::string _name);
  21. void setValue(std::string _value);
  22. std::string toXML();
  23. private:
  24. std::string name {};
  25. std::string value {};
  26. };
  27. }
  28. #endif