00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #include "Riostream.h" 00017 00018 #include "TApplication.h" 00019 00020 #include "TGo4Log.h" 00021 #include "TGo4ExampleServer.h" 00022 00023 int main(int argc, char **argv) 00024 { 00025 TApplication theApp("App", &argc, argv); 00026 TGo4Log::Instance(); // init logger object 00027 TGo4Log::SetIgnoreLevel(0); // set this to 1 to suppress detailed debug output 00028 // set this to 2 to get warnings and errors only 00029 // set this to 3 to get errors only 00030 TGo4Log::LogfileEnable(kFALSE); // will enable or disable logging all messages to file 00031 00032 TGo4ExampleServer* myserver = new TGo4ExampleServer("MyExampleServer", 0, kFALSE); 00033 // second parameter is negotiation portnumber 00034 cout << "Created Example Server Instance:"<<myserver->GetName()<<endl; // dummy action for warnings 00035 theApp.Run(); 00036 return 0; 00037 } 00038 00039 //----------------------------END OF GO4 SOURCE FILE ---------------------