Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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);
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 
91 
94 
95  ClassDef(HistoryLine, 3)
96 };
97 
98 } // end namespace
99 
100 #endif
void Init()
Definition: ChirpMass.C:280
Definition: ced.hh:24
SortOrderType
STL namespace.
MDC Print()
SortOrderType SortOrder
Definition: HistoryLine.hh:89
Type
Definition: FrDisplay.cc:105