From e1478290bf8253da21eea57645ee685db013e200 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Fri, 24 Sep 2004 22:59:18 +0000 Subject: adding package metadata; misc fixes --- cpp/include/Slice/PythonUtil.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'cpp/include/Slice/PythonUtil.h') diff --git a/cpp/include/Slice/PythonUtil.h b/cpp/include/Slice/PythonUtil.h index 4badd90d4fc..b8845fce10e 100644 --- a/cpp/include/Slice/PythonUtil.h +++ b/cpp/include/Slice/PythonUtil.h @@ -26,7 +26,7 @@ SLICE_API void generate(const Slice::UnitPtr&, bool, bool, const std::vector&); +SLICE_API bool splitString(const std::string&, std::vector&, const std::string& = " \t\n\r"); // // Convert a scoped name into a Python name. @@ -39,6 +39,19 @@ SLICE_API std::string scopedToName(const std::string&); // SLICE_API std::string fixIdent(const std::string&); +// +// Return the package specified in the global metadata for the given definition, +// or an empty string if no metadata was found. +// +SLICE_API std::string getPackageMetadata(const Slice::ContainedPtr&); + +// +// Get the fully-qualified name of the given definition, including any package +// defined via metadata. If a suffix is provided, it is prepended to the +// definition's unqualified name. +// +SLICE_API std::string getAbsolute(const Slice::ContainedPtr&, const std::string& = std::string()); + // // Emit a comment header. // -- cgit v1.2.3