From bb76e9388009ed0bb2512034f8cd48a7d19aabb3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Jun 2010 16:29:02 +0200 Subject: Next chunk of functionality --- odb/context.hxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'odb/context.hxx') diff --git a/odb/context.hxx b/odb/context.hxx index 057b821..064b0d5 100644 --- a/odb/context.hxx +++ b/odb/context.hxx @@ -10,14 +10,17 @@ #include #include #include // std::size_t +#include #include +#include #include #include #include using std::endl; +using std::cerr; class generation_failed {}; @@ -28,6 +31,18 @@ public: typedef std::string string; typedef ::options options_type; + // Database names and types. + // +public: + string + table_name (semantics::type&) const; + + string + column_name (semantics::data_member&) const; + + string + db_type (semantics::data_member&) const; + public: // Escape C++ keywords, reserved names, and illegal characters. // -- cgit v1.1