123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2020-09-23
- * Changed: 2022-07-03
- *
- * */
- #ifndef LS_STD_XML_ATTRIBUTE_HPP
- #define LS_STD_XML_ATTRIBUTE_HPP
- #include <ls_std/core/Class.hpp>
- #include <string>
- #include <ls_std/os/dynamic_goal.hpp>
- namespace ls::std::io
- {
- class LS_STD_DYNAMIC_GOAL XmlAttribute : public ls::std::core::Class
- {
- public:
- explicit XmlAttribute(const ::std::string &_name);
- ~XmlAttribute() override = default;
- ::std::string getName();
- ::std::string getValue();
- void setName(const ::std::string &_name);
- void setValue(const ::std::string &_value);
- ::std::string toXml();
- private:
- ::std::string name{};
- ::std::string value{};
- void _assignName(const ::std::string &_name);
- void _assignValue(const ::std::string &_value);
- };
- }
- #endif
|