diff options
Diffstat (limited to 'odb/relational/context.hxx')
-rw-r--r-- | odb/relational/context.hxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/odb/relational/context.hxx b/odb/relational/context.hxx index 45dbba6..956f6c4 100644 --- a/odb/relational/context.hxx +++ b/odb/relational/context.hxx @@ -71,6 +71,26 @@ namespace relational typedef std::vector<custom_db_type> custom_db_types; + // Custom C++ type mapping. + // + struct custom_cxx_type + { + tree type_node; + std::string type_name; + + tree as_node; + std::string as_name; + + // Empty expression means the values are implicitly convertible. + // + cxx_tokens to; + cxx_tokens from; + + location_t loc; + }; + + typedef std::vector<custom_cxx_type> custom_cxx_types; + class context: public virtual ::context { public: |