From cf469aa28804418338c79a5f9c68608ea2f2807a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 19 Jun 2015 17:24:11 +0200 Subject: Parse C++ type mapping --- odb/relational/context.hxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'odb/relational') 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_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_types; + class context: public virtual ::context { public: -- cgit v1.1