ICE 3.4.2
[php5-ice-freebsdport.git] / cpp / demo / Freeze / phonebook / Client.cpp
blob04c27b1b2e2423f344f93cdc4e1fcfbf09cfd276
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 #include <Parser.h>
12 using namespace std;
15 class PhoneBookClient : public Ice::Application
17 public:
19 PhoneBookClient();
21 virtual int run(int argc, char* argv[]);
24 int
25 main(int argc, char* argv[])
27 PhoneBookClient app;
28 return app.main(argc, argv, "config.client");
31 PhoneBookClient::PhoneBookClient() :
33 // Since this is an interactive demo we don't want any signal
34 // handling.
36 Ice::Application(Ice::NoSignalHandling)
40 int
41 PhoneBookClient::run(int argc, char* argv[])
43 int runParser(int, char*[], const Ice::CommunicatorPtr&);
44 return runParser(argc, argv, communicator());