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
Go4DynamicList
TGo4DynamicListException.cxx
Go to the documentation of this file.
1
// $Id: TGo4DynamicListException.cxx 999 2013-07-25 11:58:59Z 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
#include "
TGo4DynamicListException.h
"
15
16
#include "snprintf.h"
17
18
#include "
TGo4Log.h
"
19
#include "
TGo4DynamicEntry.h
"
20
21
TGo4DynamicListException
&
TGo4DynamicListException::operator=
(
const
TGo4DynamicListException
& right)
22
{
23
GO4TRACE
((14,
"TGo4DynamicListException:operator="
,__LINE__, __FILE__));
24
if
(&right!=
this
)
25
{
26
TGo4RuntimeException::operator=
(right);
// copy base class members
27
// put additional member copies here...
28
fxEntry
=right.
fxEntry
;
29
fxEntryName
=right.
fxEntryName
;
30
fxEntryClass
=right.
fxEntryClass
;
31
fxStatusMessage
=right.
fxStatusMessage
;
32
return
*
this
;
33
}
34
else
35
{
36
// copy is already source object
37
return
*
this
;
38
}
39
}
40
41
TGo4DynamicListException::TGo4DynamicListException
(
const
TGo4DynamicListException
&right)
42
:
TGo4RuntimeException
(right)
43
{
44
GO4TRACE
((14,
"TGo4DynamicListException:TGo4DynamicListException(right)"
, __LINE__, __FILE__)); ;
45
fxEntry
=right.
fxEntry
;
46
fxEntryName
=right.
fxEntryName
;
47
fxEntryClass
=right.
fxEntryClass
;
48
fxStatusMessage
=right.
fxStatusMessage
;
49
50
}
51
52
Int_t
TGo4DynamicListException::Handle
()
53
{
54
GO4TRACE
((12,
"TGo4AnalyisStepException::Handle()"
, __LINE__, __FILE__));
55
56
57
TGo4Log::Debug
(
"%s \n Entry %s:%s, %s\n \t--Entry was disabled."
,
58
What
(),
GetEntryClass
(),
GetEntryName
(),
GetStatusMessage
());
59
if
(
fxEntry
)
60
fxEntry
->
EnableProcessing
(kFALSE);
61
return
0;
62
}
63
TGo4DynamicListException::~TGo4DynamicListException
()
64
{
65
GO4TRACE
((14,
"TGo4DynamicListException:~TGo4DynamicListException"
, __LINE__, __FILE__));
66
67
}
68
TGo4DynamicListException::TGo4DynamicListException
(
TGo4DynamicEntry
* entry,
const
char
* message,...)
69
: fxEntry(0)
70
{
71
GO4TRACE
((14,
"TGo4DynamicListException:TGo4DynamicListException (TGo4DynamicEntry*,..)"
, __LINE__, __FILE__));
72
fxDescription
=
"!!!-- Go4 Dynamic List Exception --!!!"
;
73
if
(entry)
74
{
75
fxEntry
=entry;
76
fxEntryName
=
fxEntry
->GetName();
77
fxEntryClass
=
fxEntry
->ClassName();
78
79
}
80
UInt_t lbuflen=256;
81
char
txtbuf[256];
82
va_list args;
83
va_start(args, message);
84
vsnprintf(txtbuf, lbuflen, message, args);
85
va_end(args);
86
fxStatusMessage
=txtbuf;
87
}
TGo4DynamicListException::fxStatusMessage
TString fxStatusMessage
Definition:
TGo4DynamicListException.h:49
TGo4DynamicListException::TGo4DynamicListException
TGo4DynamicListException()
TGo4DynamicListException::GetStatusMessage
const char * GetStatusMessage() const
Definition:
TGo4DynamicListException.h:37
TGo4Exception::What
virtual const char * What()
Definition:
TGo4Exception.cxx:54
TGo4DynamicEntry.h
TGo4DynamicListException.h
TGo4DynamicListException::fxEntryClass
TString fxEntryClass
Definition:
TGo4DynamicListException.h:53
TGo4DynamicListException::operator=
TGo4DynamicListException & operator=(const TGo4DynamicListException &right)
Definition:
TGo4DynamicListException.cxx:21
TGo4DynamicEntry
Definition:
TGo4DynamicEntry.h:27
TGo4Log.h
TGo4DynamicListException::GetEntryClass
const char * GetEntryClass() const
Definition:
TGo4DynamicListException.h:43
TGo4DynamicListException::GetEntryName
const char * GetEntryName() const
Definition:
TGo4DynamicListException.h:40
TGo4DynamicListException::~TGo4DynamicListException
virtual ~TGo4DynamicListException()
Definition:
TGo4DynamicListException.cxx:63
TGo4RuntimeException
Definition:
TGo4RuntimeException.h:19
TGo4RuntimeException::operator=
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
Definition:
TGo4RuntimeException.cxx:43
TGo4DynamicListException::fxEntryName
TString fxEntryName
Definition:
TGo4DynamicListException.h:51
GO4TRACE
#define GO4TRACE(X)
Definition:
TGo4Log.h:26
TGo4DynamicEntry::EnableProcessing
void EnableProcessing(Bool_t on=kTRUE)
Definition:
TGo4DynamicEntry.h:39
TGo4DynamicListException::fxEntry
TGo4DynamicEntry * fxEntry
Definition:
TGo4DynamicListException.h:47
TGo4Exception::fxDescription
TString fxDescription
Definition:
TGo4Exception.h:38
TGo4DynamicListException::Handle
Int_t Handle()
Definition:
TGo4DynamicListException.cxx:52
TGo4DynamicListException
Definition:
TGo4DynamicListException.h:22
TGo4Log::Debug
static void Debug(const char *text,...)
Definition:
TGo4Log.cxx:270
Generated on Fri Oct 26 2018 08:34:50 for GSI Object Oriented Online Offline (Go4) by
1.8.8