mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
json::ObjectMapper: add mappers getters
This commit is contained in:
parent
c7103dfe68
commit
ce7897ae13
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user