12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2020-09-27
- * Changed: 2022-05-11
- *
- * */
- #ifndef LS_STD_XML_DECLARATION_HPP
- #define LS_STD_XML_DECLARATION_HPP
- #include <ls_std/core/Class.hpp>
- #include "XmlAttribute.hpp"
- namespace ls
- {
- namespace std
- {
- namespace io
- {
- class 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
|