json::ObjectMapper: add mappers getters

This commit is contained in:
Leonid Stryzhevskyi 2024-05-30 13:58:22 +03:00
parent c7103dfe68
commit ce7897ae13
2 changed files with 22 additions and 0 deletions

View File

@ -103,6 +103,22 @@ oatpp::Void ObjectMapper::read(utils::parser::Caret& caret, const data::type::Ty
}
const data::mapping::ObjectToTreeMapper& ObjectMapper::objectToTreeMapper() const {
return m_objectToTreeMapper;
}
const data::mapping::TreeToObjectMapper& ObjectMapper::treeToObjectMapper() const {
return m_treeToObjectMapper;
}
data::mapping::ObjectToTreeMapper& ObjectMapper::objectToTreeMapper() {
return m_objectToTreeMapper;
}
data::mapping::TreeToObjectMapper& ObjectMapper::treeToObjectMapper() {
return m_treeToObjectMapper;
}
const ObjectMapper::SerializerConfig& ObjectMapper::serializerConfig() const {
return m_serializerConfig;
}

View File

@ -77,6 +77,12 @@ public:
oatpp::Void read(oatpp::utils::parser::Caret& caret, const oatpp::Type* type, data::mapping::ErrorStack& errorStack) const override;
const data::mapping::ObjectToTreeMapper& objectToTreeMapper() const;
const data::mapping::TreeToObjectMapper& treeToObjectMapper() const;
data::mapping::ObjectToTreeMapper& objectToTreeMapper();
data::mapping::TreeToObjectMapper& treeToObjectMapper();
const SerializerConfig& serializerConfig() const;
const DeserializerConfig& deserializerConfig() const;