Write one line of data. Use the given converter.
This writes one line of data to the file.
392 catch (
const runtime_error &e)
419 fFile->
WriteKeyNT(
"TSTARTI", uint32_t(floor(tm)),
"Time when first event received (integral part)");
420 fFile->
WriteKeyNT(
"TSTARTF", fmod(tm, 1),
"Time when first event received (fractional part)");
425 "Time when first event received");
428 "Time when last event received");
vector< char > fCopyBuffer
the copy buffer. Required to put the standard and data variable in contguous memory ...
Adds some functionality to boost::posix_time::ptime for our needs.
vector< void * > fStandardPointers
the pointers to the standard variables
void MoveFileToCorruptedFile()
MessageImp * fMess
were to log the errors
int Error(const std::string &str)
bool WriteKeyNT(const string &name, const T &value, const string &comment)
vector< int > fStandardNumBytes
the number of bytes taken by each standard variable
bool WriteData(size_t &start, const void *ptr, size_t size)
double fEndMjD
to keep track of the time of the latest written entry (to update the header when closing the file) ...
void Close()
Close the currently opened file.
void ToFits(void *dest, const void *src, size_t size) const