Hi,
My searching didn't turn up a thread on this issue, so I thought I would ask.
Could someone remind me of the preferred method for writing objects like a TTimeStamp to a file?
It doesn't inherit from TObject, so there's no Write function.
I tried using TParameter<TTimeStamp>, but this fails to compile because TTimeStamp doesn't define a *= nor a += operator:
/home/cjreed/root_v5.30.02/include/TParameter.h: In member function
‘Int_t TParameter<AParamType>::Merge(TCollection*) [with AParamType =
TTimeStamp, Int_t = int]’:
/home/cjreed/work/iceSoft/script/makeWaves_C_ACLiC_dict.cxx:402:87:
instantiated from here
/home/cjreed/root_v5.30.02/include/TParameter.h:109:13: error: no match
for ‘operator*=’ in
‘((TParameter<TTimeStamp>*)this)->TParameter<TTimeStamp>::fVal *=
c->TParameter<AParamType>::GetVal [with AParamType = TTimeStamp]()’
/home/cjreed/root_v5.30.02/include/TParameter.h:111:13: error: no match
for ‘operator+=’ in
‘((TParameter<TTimeStamp>*)this)->TParameter<TTimeStamp>::fVal +=
c->TParameter<AParamType>::GetVal [with AParamType = TTimeStamp]()’
Thanks!
This archive was generated by hypermail 2.2.0 : Tue Dec 13 2011 - 11:50:01 CET