42 TTimeStamp CreationTT;
56 this->
Type = strdup(HistoryLine.
Type);
96 if (
Type == NULL)
return NULL;
97 else return strdup(
Type);
102 if (
Comment == NULL)
return NULL;
108 if (
History == NULL)
return NULL;
119 cout <<
"Type : " <<
Type << endl;
120 cout <<
"Comment : " <<
Comment << endl;
121 cout <<
"History : " <<
History << endl;
141 Result = strcmp(this->
Type, static_cast<HistoryLine*>(const_cast<TObject*>(Obj))->
Type);
142 if (Result == 0) Result = strcmp(this->
History, static_cast<HistoryLine*>(const_cast<TObject*>(Obj))->
History);
231 if (this->Type != NULL)
delete this->
Type;
240 this->Type =
new char[1];
247 if (this->Comment != NULL)
delete this->
Comment;
249 if (Comment != NULL) {
252 strcpy(this->Comment, Comment);
256 this->Comment =
new char[1];
257 this->Comment[0] = 0;
263 if (this->History != NULL)
delete this->
History;
265 if (History != NULL) {
268 strcpy(this->History, History);
272 this->History =
new char[1];
273 this->History[0] = 0;
277 void CWB::HistoryLine::Streamer(TBuffer &R__b)
280 TDatime CreationDatime;
281 TTimeStamp CreationTT;
284 if (R__b.IsReading()) {
285 Version_t R__v = R__b.ReadVersion(&R__s, &R__c);
if (R__v) { }
286 TObject::Streamer(R__b);
291 R__b.ReadFastArray(
Type,TypeLength);
294 R__b.ReadFastArray(
History,HistoryLength);
299 R__b.ReadFastArray(
Comment,CommentLength);
303 CreationDatime.Streamer(R__b);
304 CreationTT.Set(CreationDatime.GetYear(), CreationDatime.GetMonth(), CreationDatime.GetDay(), CreationDatime.GetHour(), CreationDatime.GetMinute(), CreationDatime.GetSecond(), 0,
true, 0);
311 R__b.CheckByteCount(R__s, R__c, CWB::HistoryLine::IsA());
323 R__c = R__b.WriteVersion(CWB::HistoryLine::IsA(), kTRUE);
324 TObject::Streamer(R__b);
327 R__b.WriteFastArray(
Type,TypeLength);
328 R__b.WriteFastArray(
History,HistoryLength);
330 R__b.WriteFastArray(
Comment,CommentLength);
335 R__b.SetByteCount(R__c, kTRUE);
341 cout << location <<
" " << msgfmt << endl;
bool IsSortOrderInsertion()
#define DEFAULT_SORT_ORDER
char * SetHistoryType(char *Type)
bool SetAscendingSortOrder()
virtual void Browse(TBrowser *b)
bool SetDescendantSortOrder()
char * GetHistoryComment()
void HistoryLineException(int type, const char *location, const char *msgfmt,...)
bool GetDescendantSortOrder()
SortOrderType GetSortOrder()
SortOrderType SetSortOrder(SortOrderType SortOrder)
bool GetAscendingSortOrder()
TTimeStamp GetCreationTimeStamp()
void SetHistory(char *Type, char *Comment, char *History)
char * SetHistoryStr(char *History)
bool IsSortOrderAlphabetical()
strcpy(RunLabel, RUN_LABEL)
#define DEFAULT_ASCENDING
void HistorySet(char *History)
HistoryLine(char *Type=NULL, char *Comment=NULL, char *History=NULL)
char * SetHistoryComment(char *Comment)
int Compare(const TObject *Obj) const
void CommentSet(char *Comment)