diff options
Diffstat (limited to 'xsde/cxx/hybrid/elements.hxx')
-rw-r--r-- | xsde/cxx/hybrid/elements.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xsde/cxx/hybrid/elements.hxx b/xsde/cxx/hybrid/elements.hxx index cd1a40f..d324b04 100644 --- a/xsde/cxx/hybrid/elements.hxx +++ b/xsde/cxx/hybrid/elements.hxx @@ -94,6 +94,17 @@ namespace CXX } static String const& + ename_custom (SemanticGraph::Type& t) + { + SemanticGraph::Context& c (t.context ()); + + if (!c.count ("name-base")) + return c.get<String> ("name"); + else + return c.get<String> ("name-base"); + } + + static String const& etype (SemanticGraph::Compositor& c) { return c.context ().get<String> ("type"); |