diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-03-29 17:30:19 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-03-29 17:30:19 +0000 |
commit | dc15f759734848a12e9cf55110c2f34dd510f91d (patch) | |
tree | 54d16f67b41576f98d40933cd6f235868970f520 /cpp/src/slice2cppe/Gen.h | |
parent | Include fixes (diff) | |
download | ice-dc15f759734848a12e9cf55110c2f34dd510f91d.tar.bz2 ice-dc15f759734848a12e9cf55110c2f34dd510f91d.tar.xz ice-dc15f759734848a12e9cf55110c2f34dd510f91d.zip |
Added support for wstring slice metadata
Diffstat (limited to 'cpp/src/slice2cppe/Gen.h')
-rw-r--r-- | cpp/src/slice2cppe/Gen.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/cpp/src/slice2cppe/Gen.h b/cpp/src/slice2cppe/Gen.h index 286e206b020..172942b04be 100644 --- a/cpp/src/slice2cppe/Gen.h +++ b/cpp/src/slice2cppe/Gen.h @@ -104,6 +104,8 @@ private: std::string _dllExport; bool _doneStaticSymbol; + bool _useWstring; + std::list<bool> _useWstringHist; }; class ProxyDeclVisitor : private ::IceUtil::noncopyable, public ParserVisitor @@ -146,6 +148,8 @@ private: ::IceUtil::Output& C; std::string _dllExport; + bool _useWstring; + std::list<bool> _useWstringHist; }; class ObjectDeclVisitor : private ::IceUtil::noncopyable, public ParserVisitor @@ -191,6 +195,8 @@ private: ::IceUtil::Output& C; std::string _dllExport; + bool _useWstring; + std::list<bool> _useWstringHist; }; class IceInternalVisitor : private ::IceUtil::noncopyable, public ParserVisitor @@ -247,12 +253,8 @@ private: ::IceUtil::Output& C; std::string _dllExport; - - // - // Generate code to emit a local variable declaration and initialize it - // if necessary. - // - void writeDecl(::IceUtil::Output&, const std::string&, const TypePtr&); + bool _useWstring; + std::list<bool> _useWstringHist; // // Generate code to return a dummy value @@ -290,6 +292,8 @@ private: }; static void validateMetaData(const UnitPtr&); + static bool setUseWstring(ContainedPtr, std::list<bool>&, bool); + static bool resetUseWstring(std::list<bool>&); static void printHeader(IceUtil::Output&); static void printVersionCheck(IceUtil::Output&); static void printDllExportStuff(IceUtil::Output&, const std::string&); |