Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include <stdlib.h>
00015
00016 #include "TApplication.h"
00017 #include "Riostream.h"
00018
00019 #include "TGo4Log.h"
00020 #include "TGo4ExampleClient.h"
00021
00022 void usage();
00023
00024 int main(int argc, char **argv)
00025 {
00026 TApplication theApp("App", &argc, argv);
00027 TGo4Log::Instance();
00028 TGo4Log::SetIgnoreLevel(0);
00029
00030
00031 TGo4Log::LogfileEnable(kFALSE);
00032
00033 if(argc<4)
00034 {
00035 usage();
00036
00037 }
00038 else
00039 {
00040 const char* name=argv[1];
00041 const char* hostname=argv[2];
00042 const char* connector=argv[3];
00043 UInt_t con=atoi(connector);
00044 std::cout << "Client:"<<name<<",\tHost:"<<hostname<<",\tConnector:"<<con<<std::endl;
00045 TGo4ExampleClient* myclient = new TGo4ExampleClient(name,hostname,con);
00046 std::cout << "Created ExampleClient Instance: "<<myclient->GetName()<<std::endl;
00047 theApp.Run();
00048 return 0;
00049 }
00050 }
00051
00052
00053 void usage()
00054 {
00055 std::cout << "usage: MainGo4TaskHandlerClient clientname serverhostname connectorport"<<std::endl;
00056 }