GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Go4ThreadManagerExample
MainGo4ThreadManagerExample.cxx
Go to the documentation of this file.
1
// $Id: MainGo4ThreadManagerExample.cxx 933 2013-01-29 15:27:58Z linev $
2
//-----------------------------------------------------------------------
3
// The GSI Online Offline Object Oriented (Go4) Project
4
// Experiment Data Processing at EE department, GSI
5
//-----------------------------------------------------------------------
6
// Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7
// Planckstr. 1, 64291 Darmstadt, Germany
8
// Contact: http://go4.gsi.de
9
//-----------------------------------------------------------------------
10
// This software can be used under the license agreements as stated
11
// in Go4License.txt file which is part of the distribution.
12
//-----------------------------------------------------------------------
13
14
// MainGo4ThreadManager.cxx:
15
// This executable just creates one ThreadManager subclass.
16
// example: TGo4TestThreadManager as user class
17
// all runnables and threads are defined in ctor of TGo4TestThreadManager.
18
// On calling theApp.Run(), the threads are started.
19
// (J.Adamczewski, GSI)
20
21
#include "TApplication.h"
22
23
#include "
TGo4Log.h
"
24
#include "
TGo4TestThreadManager.h
"
25
26
int
main
(
int
argc,
char
**argv)
27
{
28
TApplication theApp(
"App"
, &argc, argv);
29
TGo4Log::Instance
();
// init logger object
30
TGo4Log::SetIgnoreLevel
(0);
// set this to 1 to suppress detailed debug output
31
// set this to 2 to get warnings and errors only
32
// set this to 3 to get errors only
33
TGo4Log::LogfileEnable
(kFALSE);
// will enable or disable logging all messages to file
34
TGo4TestThreadManager
* myManager =
new
TGo4TestThreadManager
(
"MyTestEnvironment"
);
35
TGo4Log::Info
(
"Created thread manager %s"
, myManager->GetName());
36
theApp.Run();
37
return
0;
38
}
TGo4Log::Instance
static TGo4Log * Instance()
Definition:
TGo4Log.cxx:87
main
int main(int argc, char **argv)
Definition:
MainGo4ThreadManagerExample.cxx:26
TGo4Log::SetIgnoreLevel
static void SetIgnoreLevel(Int_t level)
Definition:
TGo4Log.cxx:322
TGo4Log.h
TGo4TestThreadManager.h
TGo4TestThreadManager
Definition:
TGo4TestThreadManager.h:33
TGo4Log::Info
static void Info(const char *text,...)
Definition:
TGo4Log.cxx:283
TGo4Log::LogfileEnable
static void LogfileEnable(Bool_t on=kTRUE)
Definition:
TGo4Log.cxx:369
Generated on Fri Oct 26 2018 08:34:53 for GSI Object Oriented Online Offline (Go4) by
1.8.8