// $Id$ //----------------------------------------------------------------------- // The GSI Online Offline Object Oriented (Go4) Project // Experiment Data Processing at EE department, GSI //----------------------------------------------------------------------- // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH // Planckstr. 1, 64291 Darmstadt, Germany // Contact: http://go4.gsi.de //----------------------------------------------------------------------- // This software can be used under the license agreements as stated // in Go4License.txt file which is part of the distribution. //----------------------------------------------------------------------- #include #include "TApplication.h" #include "TGo4Log.h" #include "TGo4ExampleClient.h" int main(int argc, char **argv) { if (argc < 4) { std::cout << "usage: MainGo4TaskHandlerClient clientname serverhostname connectorport" << std::endl; return 0; } TApplication theApp("App", &argc, argv); TGo4Log::Instance(); // init logger object TGo4Log::SetIgnoreLevel(0); // set this to 1 to suppress detailed debug output // set this to 2 to get warnings and errors only // set this to 3 to get errors only TGo4Log::LogfileEnable(kFALSE); // will enable or disable logging all messages to file const char *name = argv[1]; const char *hostname = argv[2]; const char *connector = argv[3]; UInt_t con = atoi(connector); std::cout << "Client:" << name << ",\tHost:" << hostname << ",\tConnector:" << con << std::endl; TGo4ExampleClient *myclient = new TGo4ExampleClient(name, hostname, con); std::cout << "Created ExampleClient Instance: " << myclient->GetName() << std::endl; // dummy action for warnings theApp.Run(); return 0; }