diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-09-24 22:59:18 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-09-24 22:59:18 +0000 |
commit | e1478290bf8253da21eea57645ee685db013e200 (patch) | |
tree | 2c8643f163eb9801dc6d4ebc8c650f28a18ba085 /cpp/include/Slice/PythonUtil.h | |
parent | adding generateUUID (diff) | |
download | ice-e1478290bf8253da21eea57645ee685db013e200.tar.bz2 ice-e1478290bf8253da21eea57645ee685db013e200.tar.xz ice-e1478290bf8253da21eea57645ee685db013e200.zip |
adding package metadata; misc fixes
Diffstat (limited to 'cpp/include/Slice/PythonUtil.h')
-rw-r--r-- | cpp/include/Slice/PythonUtil.h | 15 |
1 files changed, 14 insertions, 1 deletions
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<std // // Split up a string using whitespace delimiters. // -SLICE_API bool splitString(const std::string&, std::vector<std::string>&); +SLICE_API bool splitString(const std::string&, std::vector<std::string>&, const std::string& = " \t\n\r"); // // Convert a scoped name into a Python name. @@ -40,6 +40,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. // SLICE_API void printHeader(IceUtil::Output&); |