Coherent WaveBurst
Reference Guide
CWB Documentation
Main Page
Namespaces
All Classes
Files
gitlab
ROOT
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SOFT
cWB
library
master_0bc430d
tools
history
HistoryLine.hh
Go to the documentation of this file.
1
/***************************************************************************
2
HistoryLine.h - description
3
-------------------
4
begin : ven set 2 2005
5
copyright : (C) 2005 by Stefano Longo
6
email : Stefano.Longo@lnl.infn.it
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef AULHISTORYLINE_H
19
#define AULHISTORYLINE_H
20
21
#include "TObject.h"
22
#include "
HistoryDefines.hh
"
23
#include "TTimeStamp.h"
24
#include "TBuffer.h"
25
#include <stdlib.h>
26
27
/**
28
*@author Stefano Longo
29
*/
30
31
using namespace
std
;
32
33
namespace
CWB
{
34
35
class
HistoryLine
:
public
TObject {
36
public
:
37
HistoryLine
(
char
*
Type
= NULL,
char
* Comment = NULL,
char
*
History
= NULL);
38
HistoryLine
(
const
HistoryLine
&
HistoryLine
);
39
~HistoryLine();
40
41
void
SetHistory(
char
*
Type
,
char
* Comment,
char
*
History
);
42
char
* SetHistoryType(
char
* Type);
43
char
* SetHistoryComment(
char
* Comment);
44
char
* SetHistoryStr(
char
* History);
45
46
char
* GetHistoryType();
47
char
* GetHistoryComment();
48
char
* GetHistoryStr();
49
50
virtual
void
Browse(TBrowser *b);
51
void
Print
();
52
53
bool
IsSortable()
const
;
54
int
Compare(
const
TObject* Obj)
const
;
55
56
SortOrderType
SetSortOrder(
SortOrderType
SortOrder);
57
SortOrderType
GetSortOrder();
58
59
bool
IsSortOrderInsertion();
60
bool
IsSortOrderDate();
61
bool
IsSortOrderAlphabetical();
62
63
bool
SetAscendingSortOrder();
64
bool
SetDescendantSortOrder();
65
66
bool
GetAscendingSortOrder();
67
bool
GetDescendantSortOrder();
68
69
TTimeStamp GetCreationTimeStamp();
70
71
void
HistoryLineException(
int
type,
const
char
*location,
const
char
*msgfmt, ...);
72
73
private
:
74
void
Init
();
75
void
Destroy();
76
void
TypeSet(
char
* Type);
77
void
CommentSet(
char
* Comment);
78
void
HistorySet(
char
* History);
79
80
int
TypeLength
;
//Type's char number + 1
81
int
HistoryLength
;
//History's char number + 1
82
83
char
*
Type
;
//[TypeLength]
84
char
*
History
;
//[HistoryLength]
85
86
int
CommentLength
;
//Comment's char number + 1
87
char
*
Comment
;
//[CommentLength]
88
89
SortOrderType
SortOrder
;
90
bool
AscendingOrder
;
91
92
long
CreationDate_Sec
;
93
long
CreationDate_NSec
;
94
95
ClassDef(HistoryLine, 3)
96
};
97
98
}
// end namespace
99
100
#endif
Init
void Init()
Definition:
ChirpMass.C:280
CWB
Definition:
ced.hh:24
SortOrderType
SortOrderType
Definition:
HistoryDefines.hh:10
CWB::HistoryLine::CommentLength
int CommentLength
Definition:
HistoryLine.hh:86
CWB::HistoryLine::CreationDate_Sec
long CreationDate_Sec
Definition:
HistoryLine.hh:92
CWB::HistoryLine::AscendingOrder
bool AscendingOrder
Definition:
HistoryLine.hh:90
CWB::HistoryLine
Definition:
HistoryLine.hh:35
std
STL namespace.
CWB::HistoryLine::TypeLength
int TypeLength
Definition:
HistoryLine.hh:80
HistoryDefines.hh
CWB::History
Definition:
History.hh:38
Print
MDC Print()
CWB::HistoryLine::CreationDate_NSec
long CreationDate_NSec
Definition:
HistoryLine.hh:93
CWB::HistoryLine::Type
char * Type
Definition:
HistoryLine.hh:83
CWB::HistoryLine::SortOrder
SortOrderType SortOrder
Definition:
HistoryLine.hh:89
CWB::HistoryLine::HistoryLength
int HistoryLength
Definition:
HistoryLine.hh:81
CWB::HistoryLine::Comment
char * Comment
Definition:
HistoryLine.hh:87
CWB::HistoryLine::History
char * History
Definition:
HistoryLine.hh:84
Type
Type
Definition:
FrDisplay.cc:105