18 #ifndef HISTORYSTAGE_H
19 #define HISTORYSTAGE_H
27 #include "TTimeStamp.h"
39 HistoryStage(
char** HistoryTypes = NULL,
int TypeNumber = 0,
char* Name = NULL,
char* Comment = NULL, TDatime* Time = NULL);
40 HistoryStage(
const TList& HistoryTypes,
char* Name = NULL,
char* Comemment = NULL, TDatime* Time = NULL);
41 HistoryStage(
char** HistoryTypes,
int TypeNumber,
char* Name,
char* Comment,
int Date,
int Time);
42 HistoryStage(
const TList& HistoryTypes,
char* Name,
char* Comment,
int Date,
int Time);
47 char* SetComment(
char* Comment);
48 void SetTime(TDatime* Time);
49 void SetTime(
int Date,
int Time);
50 void SetTypes(
char** HistoryTypes,
int TypeNumber);
51 char* SetTypeComment(
char*
Type,
char* Comment);
58 char* GetTypeComment(
char* Type);
60 void AddLog(
char* LogMsg, TDatime* Time = NULL);
61 void AddLog(
char* LogMsg,
int Date,
int Time);
63 void AddHistory(
char* Type,
char*
History,
char* Comment = NULL,
bool Replace =
false);
67 char* GetHistoryEntry(
int index);
68 char* GetHistoryEntryType(
int index);
69 char* GetLogEntry(
int index);
70 int GetLogEntryDate(
int index);
71 int GetLogEntryTime(
int index);
72 TDatime* GetLogEntryDatime(
int index);
74 char* GetHistory(
char* Type);
76 void SortLogs(
bool Ascending =
true);
78 bool TypeAllowed(
char* Type);
79 bool TypeAlreadyPresent(
char* Type);
81 virtual void Browse(TBrowser *b);
84 bool IsSortable()
const;
85 int Compare(
const TObject* Obj)
const;
87 char* AddType(
char* TypeName);
88 char* RemoveType(
char* TypeName);
93 bool IsSortOrderInsertion();
94 bool IsSortOrderDate();
95 bool IsSortOrderAlphabetical();
97 bool SetAscendingSortOrder();
98 bool SetDescendantSortOrder();
100 bool GetAscendingSortOrder();
101 bool GetDescendantSortOrder();
105 TTimeStamp GetCreationTimeStamp();
107 void HistoryStageException(
int type,
const char *location,
const char *msgfmt, ...);
132 void NameSet(
char* Name);
133 void CommentSet(
char* Comment);
135 ClassDef(HistoryStage, 3)
plot hist2D SetName("WSeries-1")
history AddLog(job_stage,"START JOB")
history AddHistory(job_stage,"WATVERSION", watversion('s'))