XmlAttribute.hpp 744 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: 2021-05-02
  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. {
  15. class XmlAttribute : public ls_std::Class
  16. {
  17. public:
  18. explicit XmlAttribute(std::string _name);
  19. ~XmlAttribute() override = default;
  20. std::string getName();
  21. std::string getValue();
  22. void setName(std::string _name);
  23. void setValue(std::string _value);
  24. std::string toXml();
  25. private:
  26. std::string name{};
  27. std::string value{};
  28. };
  29. }
  30. #endif