aboutsummaryrefslogtreecommitdiff
path: root/xsde/cxx/hybrid/serializer-name-processor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xsde/cxx/hybrid/serializer-name-processor.cxx')
-rw-r--r--xsde/cxx/hybrid/serializer-name-processor.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/xsde/cxx/hybrid/serializer-name-processor.cxx b/xsde/cxx/hybrid/serializer-name-processor.cxx
index ba4a268..2f7d296 100644
--- a/xsde/cxx/hybrid/serializer-name-processor.cxx
+++ b/xsde/cxx/hybrid/serializer-name-processor.cxx
@@ -265,7 +265,7 @@ namespace CXX
if (!name)
return;
- String const& skel (lc.get<String> ("p:name"));
+ String const& skel (lc.get<String> ("s:name"));
NameSet set;
set.insert (name);
@@ -672,7 +672,8 @@ namespace CXX
Void
process_impl (CLI::Options const& ops,
SemanticGraph::Schema& tu,
- SemanticGraph::Path const& file)
+ SemanticGraph::Path const& file,
+ Boolean deep)
{
Context ctx (ops, tu, file);
@@ -701,6 +702,9 @@ namespace CXX
schema.dispatch (tu);
}
+ if (!deep)
+ return;
+
// Pass two - assign names inside complex types. Here we don't
// need to go into included/imported schemas.
//
@@ -732,9 +736,10 @@ namespace CXX
Void SerializerNameProcessor::
process (CLI::Options const& ops,
SemanticGraph::Schema& tu,
- SemanticGraph::Path const& file)
+ SemanticGraph::Path const& file,
+ Boolean deep)
{
- process_impl (ops, tu, file);
+ process_impl (ops, tu, file, deep);
}
}
}