aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-19 17:24:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-19 17:24:11 +0200
commitcf469aa28804418338c79a5f9c68608ea2f2807a (patch)
tree6c13a9b5dd6b4727007e6aca210bec9d490482d8 /odb/relational/context.hxx
parent21b6e3ebeba9518259aae67954b51f5f6261b944 (diff)
Parse C++ type mapping
Diffstat (limited to 'odb/relational/context.hxx')
-rw-r--r--odb/relational/context.hxx20
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: