Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HistoryLogLine.hh
Go to the documentation of this file.
1 /***************************************************************************
2  HistoryLogline.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 HISTORYLOGLINE_H
19 #define HISTORYLOGLINE_H
20 
21 #include "TObject.h"
22 #include "TDatime.h"
23 #include "HistoryDefines.hh"
24 #include "TTimeStamp.h"
25 #include "TBuffer.h"
26 #include <iostream>
27 #include <string.h>
28 
29 /**
30  *@author Stefano Longo
31  */
32 
33 using namespace std;
34 
35 namespace CWB {
36 
37 class HistoryLogLine : public TObject {
38 public:
39  HistoryLogLine(char* LogStr = NULL, TDatime* Time = NULL);
40  HistoryLogLine(char* LogStr, int Date, int Time);
41  HistoryLogLine(const HistoryLogLine& LogLine);
42  ~HistoryLogLine();
43 
44  void SetLog(char* LogStr, TDatime* Time = NULL);
45  void SetLog(char* LogStr, int Date, int Time);
46  void SetLogTime(int Date, int Time);
47  void SetLogTime(TDatime* Time);
48  char* SetLogStr(char* Log);
49 
50  char* GetLogStr();
51  int GetLogDate();
52  int GetLogTime();
53  TDatime* GetLogDatime();
54 
55  virtual void Browse(TBrowser *b);
56  void Print();
57 
58  bool IsSortable() const;
59  int Compare(const TObject* Obj) const;
60 
61  SortOrderType SetSortOrder(SortOrderType SortOrder);
62  SortOrderType GetSortOrder();
63 
64  bool IsSortOrderInsertion();
65  bool IsSortOrderDate();
66  bool IsSortOrderAlphabetical();
67 
68  bool SetAscendingSortOrder();
69  bool SetDescendantSortOrder();
70 
71  bool GetAscendingSortOrder();
72  bool GetDescendantSortOrder();
73 
74  TTimeStamp GetCreationTimeStamp();
75 
76 private:
77  void Init();
78  void Destroy();
79 
80  int Date, Time; //Date and Time in TDatetime.GetDate/Time() format;
81 
82  int LogLength; //Lengh of log = char number + 1
83  char* Log; //[LogLength]
84 
87 
90 
91  ClassDef(HistoryLogLine, 3)
92 };
93 
94 } // end namespace
95 
96 #endif
void Init()
Definition: ChirpMass.C:280
Definition: ced.hh:24
SortOrderType
STL namespace.
MDC Print()
SortOrderType SortOrder