summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrett Cooley <cooley@google.com>2015-05-05 17:10:53 -0700
committerBrett Cooley <cooley@google.com>2015-05-05 17:10:53 -0700
commit249f71a12bb950eefa9768d461db9bf084432d55 (patch)
treea4af6ac351f5a6e01a77aecb43f62ba4c427d4ce /include
parent1d138fbe07e9958b5d055816c3ebfec7d43b0a82 (diff)
downloadflatbuffers-249f71a12bb950eefa9768d461db9bf084432d55.tar.gz
flatbuffers-249f71a12bb950eefa9768d461db9bf084432d55.tar.bz2
flatbuffers-249f71a12bb950eefa9768d461db9bf084432d55.zip
Initial support for propagating namespaces from schema files to generated code
Change-Id: Ifc10c54845ea7553586d1896d509314d68e9ab0f
Diffstat (limited to 'include')
-rw-r--r--include/flatbuffers/idl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/flatbuffers/idl.h b/include/flatbuffers/idl.h
index 14d3364a..e06521d0 100644
--- a/include/flatbuffers/idl.h
+++ b/include/flatbuffers/idl.h
@@ -313,6 +313,12 @@ class Parser {
// Mark all definitions as already having code generated.
void MarkGenerated();
+ // Given a (potentally unqualified) name, return the "fully qualified" name
+ // which has a full namespaced descriptor. If the parser has no current
+ // namespace context, or if the name passed is partially qualified the input
+ // is simply returned.
+ std::string GetFullyQualifiedName(const std::string &name) const;
+
// Get the files recursively included by the given file. The returned
// container will have at least the given file.
std::set<std::string> GetIncludedFilesRecursive(