diff options
author | Jose <jose@zeroc.com> | 2015-04-13 14:58:28 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-04-13 14:58:28 +0200 |
commit | 8cff2a828400acb3769b7b05452ac267725086eb (patch) | |
tree | 3735ea75f8890fcec71909b0ce4cc616bd14d30a /cpp/include/Slice/Util.h | |
parent | ICE-6445 Remove .NET CF support (diff) | |
download | ice-8cff2a828400acb3769b7b05452ac267725086eb.tar.bz2 ice-8cff2a828400acb3769b7b05452ac267725086eb.tar.xz ice-8cff2a828400acb3769b7b05452ac267725086eb.zip |
Add --depend-file/--depend-xml optinos to all Slice compilers
Diffstat (limited to 'cpp/include/Slice/Util.h')
-rw-r--r-- | cpp/include/Slice/Util.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cpp/include/Slice/Util.h b/cpp/include/Slice/Util.h index 46df01910a1..9c9118e3740 100644 --- a/cpp/include/Slice/Util.h +++ b/cpp/include/Slice/Util.h @@ -12,6 +12,9 @@ #include <Slice/Parser.h> #include <IceUtil/OutputUtil.h> +#include <IceUtil/FileUtil.h> + +#include <ostream> namespace Slice { @@ -28,6 +31,21 @@ SLICE_API void emitRaw(const char*); SLICE_API std::vector<std::string> filterMcppWarnings(const std::string&); SLICE_API void printGeneratedHeader(IceUtilInternal::Output& out, const std::string&, const std::string& commentStyle = "//"); +class SLICE_API DependOutputUtil : IceUtil::noncopyable +{ +public: + + DependOutputUtil(std::string& file); + ~DependOutputUtil(); + void cleanup(); + std::ostream& os(); + +private: + + const std::string _file; + IceUtilInternal::ofstream _os; +}; + } #endif |