1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2020-09-27
- * Changed: 2022-07-03
- *
- * */
- #ifndef LS_STD_XML_DECLARATION_HPP
- #define LS_STD_XML_DECLARATION_HPP
- #include <ls_std/core/Class.hpp>
- #include "XmlAttribute.hpp"
- #include <ls_std/os/dynamic_goal.hpp>
- namespace ls::std::io
- {
- class LS_STD_DYNAMIC_GOAL XmlDeclaration : public ls::std::core::Class
- {
- public:
- explicit XmlDeclaration(const ::std::string &_version);
- ~XmlDeclaration() override = default;
- ::std::string getEncoding();
- ::std::string getStandalone();
- ::std::string getVersion();
- void setEncoding(const ::std::string &_encoding);
- void setStandalone(const ::std::string &_standalone);
- void setVersion(const ::std::string &_version);
- ::std::string toXml();
- private:
- ls::std::io::XmlAttribute encoding{"encoding"};
- ls::std::io::XmlAttribute standalone{"standalone"};
- ls::std::io::XmlAttribute version{"version"};
- static ::std::string _toXmlAttribute(ls::std::io::XmlAttribute _attribute);
- };
- }
- #endif
|