diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-12 14:28:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-12 14:28:03 +0200 |
commit | c0931400a1c5f02cf145c90fd7e34216836efd88 (patch) | |
tree | 5e13c5864e5f3c944a316f9189eb87976c8908c0 /odb/relational | |
parent | f01ad68661d62af62087b7b1ae29628f028e9eaa (diff) |
Implement --output-name, --generate-schema-only, and --at-once options
Diffstat (limited to 'odb/relational')
-rw-r--r-- | odb/relational/header.hxx | 4 | ||||
-rw-r--r-- | odb/relational/inline.hxx | 2 | ||||
-rw-r--r-- | odb/relational/model.hxx | 2 | ||||
-rw-r--r-- | odb/relational/schema-source.hxx | 2 | ||||
-rw-r--r-- | odb/relational/source.hxx | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/odb/relational/header.hxx b/odb/relational/header.hxx index c7a7445..25f9480 100644 --- a/odb/relational/header.hxx +++ b/odb/relational/header.hxx @@ -970,7 +970,7 @@ namespace relational virtual void traverse (type& c) { - if (class_file (c) != unit.file ()) + if (!options.at_once () && class_file (c) != unit.file ()) return; if (object (c)) @@ -1224,7 +1224,7 @@ namespace relational virtual void traverse (type& c) { - if (class_file (c) != unit.file ()) + if (!options.at_once () && class_file (c) != unit.file ()) return; if (object (c)) diff --git a/odb/relational/inline.hxx b/odb/relational/inline.hxx index ff97874..76c29f1 100644 --- a/odb/relational/inline.hxx +++ b/odb/relational/inline.hxx @@ -202,7 +202,7 @@ namespace relational virtual void traverse (type& c) { - if (class_file (c) != unit.file ()) + if (!options.at_once () && class_file (c) != unit.file ()) return; context::top_object = context::cur_object = &c; diff --git a/odb/relational/model.hxx b/odb/relational/model.hxx index b3edd93..4245c91 100644 --- a/odb/relational/model.hxx +++ b/odb/relational/model.hxx @@ -659,7 +659,7 @@ namespace relational virtual void traverse (type& c) { - if (class_file (c) != unit.file ()) + if (!options.at_once () && class_file (c) != unit.file ()) return; if (!object (c)) diff --git a/odb/relational/schema-source.hxx b/odb/relational/schema-source.hxx index 82b7e71..925e914 100644 --- a/odb/relational/schema-source.hxx +++ b/odb/relational/schema-source.hxx @@ -21,7 +21,7 @@ namespace relational virtual void traverse (type& c) { - if (class_file (c) != unit.file ()) + if (!options.at_once () && class_file (c) != unit.file ()) return; if (!object (c)) diff --git a/odb/relational/source.hxx b/odb/relational/source.hxx index 21954e0..1b5df6e 100644 --- a/odb/relational/source.hxx +++ b/odb/relational/source.hxx @@ -3340,7 +3340,7 @@ namespace relational virtual void traverse (type& c) { - if (class_file (c) != unit.file ()) + if (!options.at_once () && class_file (c) != unit.file ()) return; context::top_object = context::cur_object = &c; |