SectionPairRowListValue.hpp 983 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-10
  6. * Changed: 2023-02-10
  7. *
  8. * */
  9. #ifndef LS_STD_SECTION_PAIR_ROW_LIST_VALUE_HPP
  10. #define LS_STD_SECTION_PAIR_ROW_LIST_VALUE_HPP
  11. #include "SectionPairRowValue.hpp"
  12. #include "SectionPairTypes.hpp"
  13. #include <list>
  14. #include <ls-std/core/Class.hpp>
  15. namespace ls::std::io
  16. {
  17. class SectionPairRowListValue : public ls::std::core::Class, public ls::std::io::SectionPairRowValue
  18. {
  19. public:
  20. SectionPairRowListValue();
  21. ~SectionPairRowListValue() override;
  22. void add(const ls::std::io::section_pair_row_value &_value);
  23. [[nodiscard]] ls::std::io::section_pair_row_value get(size_t _index);
  24. [[nodiscard]] size_t getSize();
  25. [[nodiscard]] ls::std::io::SectionPairRowEnumType getType() override;
  26. private:
  27. ::std::list<ls::std::io::section_pair_row_value> values{};
  28. };
  29. }
  30. #endif