#ifndef RFL_PARSING_PARSER_VECTORSRING_HPP_ #define RFL_PARSING_PARSER_VECTORSRING_HPP_ #include #include "../Result.hpp" #include "../Vectorstring.hpp" #include "Parent.hpp" #include "Parser_base.hpp" #include "schema/Type.hpp" namespace rfl::parsing { template requires AreReaderAndWriter struct Parser { using InputVarType = typename R::InputVarType; using ParentType = Parent; static Result read(const R& _r, const InputVarType& _var) noexcept { return _r.template to_basic_type(_var); } template static void write(const W& _w, const Vectorstring& _b, const P& _parent) { ParentType::add_value(_w, _b, _parent); } static schema::Type to_schema( [[maybe_unused]] std::map* _definitions) { return schema::Type{schema::Type::Vectorstring{}}; } }; } // namespace rfl::parsing #endif