36 #ifndef HISTORYSTAGE_H 37 #define HISTORYSTAGE_H 45 #include "TTimeStamp.h" 57 HistoryStage(
char** HistoryTypes = NULL,
int TypeNumber = 0,
char* Name = NULL,
char* Comment = NULL, TDatime* Time = NULL);
58 HistoryStage(
const TList& HistoryTypes,
char* Name = NULL,
char* Comemment = NULL, TDatime* Time = NULL);
59 HistoryStage(
char** HistoryTypes,
int TypeNumber,
char* Name,
char* Comment,
int Date,
int Time);
60 HistoryStage(
const TList& HistoryTypes,
char* Name,
char* Comment,
int Date,
int Time);
65 char* SetComment(
char* Comment);
66 void SetTime(TDatime* Time);
67 void SetTime(
int Date,
int Time);
68 void SetTypes(
char** HistoryTypes,
int TypeNumber);
69 char* SetTypeComment(
char*
Type,
char* Comment);
76 char* GetTypeComment(
char* Type);
78 void AddLog(
char* LogMsg, TDatime* Time = NULL);
79 void AddLog(
char* LogMsg,
int Date,
int Time);
81 void AddHistory(
char* Type,
char*
History,
char* Comment = NULL,
bool Replace =
false);
85 char* GetHistoryEntry(
int index);
86 char* GetHistoryEntryType(
int index);
87 char* GetLogEntry(
int index);
88 int GetLogEntryDate(
int index);
89 int GetLogEntryTime(
int index);
90 TDatime* GetLogEntryDatime(
int index);
92 char* GetHistory(
char* Type);
94 void SortLogs(
bool Ascending =
true);
96 bool TypeAllowed(
char* Type);
97 bool TypeAlreadyPresent(
char* Type);
99 virtual void Browse(TBrowser *b);
102 bool IsSortable()
const;
103 int Compare(
const TObject* Obj)
const;
105 char* AddType(
char* TypeName);
106 char* RemoveType(
char* TypeName);
111 bool IsSortOrderInsertion();
112 bool IsSortOrderDate();
113 bool IsSortOrderAlphabetical();
115 bool SetAscendingSortOrder();
116 bool SetDescendantSortOrder();
118 bool GetAscendingSortOrder();
119 bool GetDescendantSortOrder();
123 TTimeStamp GetCreationTimeStamp();
125 void HistoryStageException(
int type,
const char *location,
const char *msgfmt, ...);
150 void NameSet(
char* Name);
151 void CommentSet(
char* Comment);
153 ClassDef(HistoryStage, 3)
plot hist2D SetName("WSeries-1")
history AddLog(job_stage, "START JOB")
history AddHistory(job_stage, "WATVERSION", watversion('s'))