39 TTimeStamp CreationTT;
45 this->
Date = Time->GetDate();
46 this->Time = Time->GetTime();
50 this->
Date = tmpTime.GetDate();
51 this->Time = tmpTime.GetTime();
67 TTimeStamp CreationTT;
90 this->
Log = strdup(LogLine.
Log);
105 this->
Date = Time->GetDate();
106 this->Time = Time->GetTime();
107 if (LogStr != NULL) {
125 if (LogStr != NULL) {
145 this->
Date = Time->GetDate();
146 this->Time = Time->GetTime();
195 cout <<
"Log Time: " << tmpTime.GetDay() <<
"/" << tmpTime.GetMonth() <<
"/" << tmpTime.GetYear() <<
" - ";
196 cout << tmpTime.GetHour() <<
":" << tmpTime.GetMinute() <<
":" << tmpTime.GetSecond() << endl;
209 if (this->
Date < static_cast<HistoryLogLine*>(const_cast<TObject*>(Obj))->
Date) Result = -1;
210 else if (this->
Date > static_cast<HistoryLogLine*>(const_cast<TObject*>(Obj))->
Date) Result = 1;
212 if (this->
Time < static_cast<HistoryLogLine*>(const_cast<TObject*>(Obj))->
Time) Result = -1;
213 else if (this->
Time > static_cast<HistoryLogLine*>(const_cast<TObject*>(Obj))->
Time) Result = 1;
214 else Result = strcmp(this->
Log, static_cast<HistoryLogLine*>(const_cast<TObject*>(Obj))->
Log);
287 if (
Log != NULL)
delete Log;
290 void CWB::HistoryLogLine::Streamer(TBuffer &R__b)
293 TDatime CreationDatime;
294 TTimeStamp CreationTT;
297 if (R__b.IsReading()) {
298 Version_t R__v = R__b.ReadVersion(&R__s, &R__c);
if (R__v) { }
299 TObject::Streamer(R__b);
305 R__b.ReadFastArray(
Log,LogLength);
310 CreationDatime.Streamer(R__b);
311 CreationTT.Set(CreationDatime.GetYear(), CreationDatime.GetMonth(), CreationDatime.GetDay(), CreationDatime.GetHour(), CreationDatime.GetMinute(), CreationDatime.GetSecond(), 0,
true, 0);
319 R__b.CheckByteCount(R__s, R__c, CWB::HistoryLogLine::IsA());
328 R__c = R__b.WriteVersion(CWB::HistoryLogLine::IsA(), kTRUE);
329 TObject::Streamer(R__b);
333 R__b.WriteFastArray(
Log,LogLength);
338 R__b.SetByteCount(R__c, kTRUE);
#define DEFAULT_SORT_ORDER
TTimeStamp GetCreationTimeStamp()
SortOrderType GetSortOrder()
SortOrderType SetSortOrder(SortOrderType SortOrder)
bool GetDescendantSortOrder()
bool SetDescendantSortOrder()
void SetLogTime(int Date, int Time)
bool IsSortOrderInsertion()
bool GetAscendingSortOrder()
int Compare(const TObject *Obj) const
bool IsSortOrderAlphabetical()
bool SetAscendingSortOrder()
virtual void Browse(TBrowser *b)
char * SetLogStr(char *Log)
strcpy(RunLabel, RUN_LABEL)
#define DEFAULT_ASCENDING
HistoryLogLine(char *LogStr=NULL, TDatime *Time=NULL)
void SetLog(char *LogStr, TDatime *Time=NULL)