diff options
Diffstat (limited to 'cpp/demo/Freeze/library/Client.cpp')
-rw-r--r-- | cpp/demo/Freeze/library/Client.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/cpp/demo/Freeze/library/Client.cpp b/cpp/demo/Freeze/library/Client.cpp new file mode 100644 index 00000000000..c113e3c568b --- /dev/null +++ b/cpp/demo/Freeze/library/Client.cpp @@ -0,0 +1,45 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <Ice/Ice.h> +#include <Parser.h> + +using namespace std; + +class LibraryClient : public Ice::Application +{ +public: + + LibraryClient(); + + virtual int run(int argc, char* argv[]); +}; + +int +main(int argc, char* argv[]) +{ + LibraryClient app; + return app.main(argc, argv, "config.client"); +} + +LibraryClient::LibraryClient() : + // + // Since this is an interactive demo we don't want any signal + // handling. + // + Ice::Application(Ice::NoSignalHandling) +{ +} + +int +LibraryClient::run(int argc, char* argv[]) +{ + int runParser(int, char*[], const Ice::CommunicatorPtr&); + return runParser(argc, argv, communicator()); +} |