KvParseParameter.hpp 726 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-12-25
  6. * Changed: 2023-02-05
  7. *
  8. * */
  9. #ifndef LS_STD_KV_PARSE_DATA_HPP
  10. #define LS_STD_KV_PARSE_DATA_HPP
  11. #include <string>
  12. namespace ls::std::io
  13. {
  14. class KvParseParameter
  15. {
  16. public:
  17. KvParseParameter();
  18. ~KvParseParameter();
  19. [[nodiscard]] ::std::string::size_type getIndex() const;
  20. [[nodiscard]] ::std::string getLine();
  21. void setIndex(const ::std::string::size_type &_index);
  22. void setLine(const ::std::string &_line);
  23. private:
  24. ::std::string::size_type index{};
  25. ::std::string line{};
  26. };
  27. }
  28. #endif