diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-10-19 02:27:18 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-10-19 02:27:18 +0000 |
commit | 4ee06da3e23c279897cef5b2b51487875b4486b7 (patch) | |
tree | e2080691778256ebf32ceabc7d8edce6e869fbad /cpp/src/slice2cpp/Main.cpp | |
parent | updating dependencies (diff) | |
download | ice-4ee06da3e23c279897cef5b2b51487875b4486b7.tar.bz2 ice-4ee06da3e23c279897cef5b2b51487875b4486b7.tar.xz ice-4ee06da3e23c279897cef5b2b51487875b4486b7.zip |
adding streaming API
Diffstat (limited to 'cpp/src/slice2cpp/Main.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Main.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp index 8caeb79562e..6b0260d88c5 100644 --- a/cpp/src/slice2cpp/Main.cpp +++ b/cpp/src/slice2cpp/Main.cpp @@ -35,6 +35,7 @@ usage(const char* n) "-d, --debug Print debug messages.\n" "--ice Permit `Ice' prefix (for building Ice source code only)\n" "--checksum Generate checksums for Slice definitions.\n" + "--stream Generate marshaling support for public stream API.\n" ; // Note: --case-sensitive is intentionally not shown here! } @@ -55,6 +56,7 @@ main(int argc, char* argv[]) bool caseSensitive = false; bool depend = false; bool checksum = false; + bool stream = false; int idx = 1; while(idx < argc) @@ -231,6 +233,15 @@ main(int argc, char* argv[]) } --argc; } + else if(strcmp(argv[idx], "--stream") == 0) + { + stream = true; + for(int i = idx ; i + 1 < argc ; ++i) + { + argv[i] = argv[i + 1]; + } + --argc; + } else if(argv[idx][0] == '-') { cerr << argv[0] << ": unknown option `" << argv[idx] << "'" << endl; @@ -285,7 +296,7 @@ main(int argc, char* argv[]) else { Gen gen(argv[0], icecpp.getBaseName(), headerExtension, sourceExtension, include, - includePaths, dllExport, output, impl, checksum); + includePaths, dllExport, output, impl, checksum, stream); if(!gen) { u->destroy(); |