SectionPairRow.hpp 884 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-08
  6. * Changed: 2023-02-08
  7. *
  8. * */
  9. #ifndef LS_STD_SECTION_PAIR_ROW_HPP
  10. #define LS_STD_SECTION_PAIR_ROW_HPP
  11. #include "SectionPairRowEnumType.hpp"
  12. #include <list>
  13. #include <ls-std/core/Class.hpp>
  14. #include <string>
  15. namespace ls::std::io
  16. {
  17. class SectionPairRow : public ls::std::core::Class
  18. {
  19. public:
  20. explicit SectionPairRow(const ::std::string &_key);
  21. ~SectionPairRow() override;
  22. [[nodiscard]] ::std::string getValue();
  23. [[nodiscard]] bool isKeyValue();
  24. [[nodiscard]] bool isList();
  25. void setValue(const ::std::string &_value);
  26. private:
  27. ::std::string key{};
  28. ls::std::io::SectionPairRowEnumType type{};
  29. ::std::list<::std::string> values{};
  30. };
  31. }
  32. #endif