From 4ee06da3e23c279897cef5b2b51487875b4486b7 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Tue, 19 Oct 2004 02:27:18 +0000 Subject: adding streaming API --- cpp/src/slice2cpp/Main.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'cpp/src/slice2cpp/Main.cpp') 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(); -- cgit v1.2.3