summaryrefslogtreecommitdiff
path: root/odb/context.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/context.hxx')
-rw-r--r--odb/context.hxx16
1 files changed, 15 insertions, 1 deletions
diff --git a/odb/context.hxx b/odb/context.hxx
index 03a3871..b052a71 100644
--- a/odb/context.hxx
+++ b/odb/context.hxx
@@ -15,7 +15,6 @@
#include <cutl/shared-ptr.hxx>
-#include <odb/database.hxx>
#include <odb/options.hxx>
#include <odb/semantics.hxx>
#include <odb/traversal.hxx>
@@ -148,11 +147,23 @@ public:
string
public_name (semantics::data_member&) const;
+ // "Flatten" fully-qualified C++ name by replacing '::' with '_'
+ // and removing leading '::', if any.
+ //
+ static string
+ flat_name (string const& fqname);
+
// Escape C++ keywords, reserved names, and illegal characters.
//
string
escape (string const&) const;
+ // Return a string literal that can be used in C++ source code. It
+ // includes "".
+ //
+ string
+ strlit (string const&);
+
// Counts and other information.
//
public:
@@ -302,6 +313,8 @@ public:
typedef std::set<string> keyword_set_type;
keyword_set_type const& keyword_set;
+ bool embedded_schema;
+
struct db_type_type
{
db_type_type () {}
@@ -355,6 +368,7 @@ public:
options_type const&,
data_ptr = data_ptr ());
context (context&);
+ context (context&, std::ostream&);
virtual
~context ();