ICP
1
|
#include <NeXusEventWriter.h>
Public Member Functions | |
ICPEventWriter () | |
~ICPEventWriter () | |
void | setup (const ISISCRPT_STRUCT *crpt, ISISDAE *dae, int run_number_digits, DAEstatus &status) |
void | start () |
void | stop (bool delete_file=false) |
std::string | filename () |
void | snapshot (const std::string &name) |
Private Member Functions | |
void | snapshotOld (const std::string &name) |
Private Attributes | |
const ISISCRPT_STRUCT * | m_crpt |
NeXusEventCallback * | m_nxcallback |
IXNeXusFile * | m_file |
ISISDAE * | m_dae |
std::list < boost::signals2::connection > | m_callbacks |
DAEstatus * | m_status |
int | m_run_number_digits |
Additional Inherited Members | |
Protected Member Functions inherited from ISIS::Base | |
Base (const std::string &logger_name="UNKNOWN") | |
void | setLoggerName (const std::string &logger_name) |
virtual | ~Base () |
virtual std::string | loggingPrefix () const |
void | setThisLoggerLevel (int level) |
Static Protected Member Functions inherited from ISIS::Base | |
static void | setAllLoggerLevel (int level) |
Protected Attributes inherited from ISIS::Base | |
Poco::Logger * | m_logger |
Poco::LogStream * | m_logstr |
Poco::Mutex | m_logger_lock |
Definition at line 24 of file NeXusEventWriter.h.
ICPEventWriter::ICPEventWriter | ( | ) |
Definition at line 83 of file NeXusEventWriter.cpp.
References ISIS::Base::setLoggerName().
ICPEventWriter::~ICPEventWriter | ( | ) |
Definition at line 88 of file NeXusEventWriter.cpp.
References stop().
std::string ICPEventWriter::filename | ( | ) |
Definition at line 104 of file NeXusEventWriter.cpp.
References m_crpt, m_run_number_digits, padWithZeros(), and ISISCRPT_STRUCT::run_number.
Referenced by ISISinstrumentControl::endRunMain(), setup(), snapshot(), snapshotOld(), start(), and stop().
void ICPEventWriter::setup | ( | const ISISCRPT_STRUCT * | crpt, |
ISISDAE * | dae, | ||
int | run_number_digits, | ||
DAEstatus & | status | ||
) |
Definition at line 94 of file NeXusEventWriter.cpp.
References dae, filename(), LOGSTR_INFORMATION, m_crpt, m_dae, m_run_number_digits, and m_status.
Referenced by ISISinstrumentControl::ISISinstrumentControl().
void ICPEventWriter::snapshot | ( | const std::string & | name | ) |
Definition at line 298 of file NeXusEventWriter.cpp.
References filename(), IXNeXusFile::flush(), LOGSTR_ERROR, LOGSTR_WARNING, m_file, and nx_critical.
Referenced by ISISinstrumentControl::updateCRPTWithSEandSaveToFile().
|
private |
Definition at line 187 of file NeXusEventWriter.cpp.
References filename(), IXNeXusFile::flush(), LOGSTR_ERROR, LOGSTR_WARNING, m_file, and nx_critical.
void ICPEventWriter::start | ( | ) |
Definition at line 117 of file NeXusEventWriter.cpp.
References ISISDAE::addAllEventCallback(), ISISDAE::addAllFrameCallback(), ISISDAE::addNoFrameCallback(), NeXusEventCallback::allEventCallback(), NeXusEventCallback::allFrameCallback(), ISISCRPT_STRUCT::compression_block_size, ISISCRPT_STRUCT::compression_level, NeXusEventCallback::createEmptyFileStructure(), IXNeXusFile::enableCompression(), filename(), ISISDAE::getEnabledEventSourceIDs(), IXNeXusFile::HDF5, LOGSTR_INFORMATION, m_callbacks, m_crpt, m_dae, m_file, m_nxcallback, m_status, IXNeXusFile::makeNewGroup(), NeXusEventCallback::noFrameCallbackNull(), nxErrorFunc(), IXNeXusFile::open(), IXNeXusFile::setSpectraChunkSize(), stop(), and IXNeXusFile::Write.
Referenced by ISISinstrumentControl::beginRunMainEx().
void ICPEventWriter::stop | ( | bool | delete_file = false | ) |
Definition at line 152 of file NeXusEventWriter.cpp.
References ISISDAE::clearCallbacks(), IXNeXusFile::close(), filename(), NeXusEventCallback::finish(), LOGSTR_INFORMATION, m_callbacks, m_dae, m_file, and m_nxcallback.
Referenced by ISISinstrumentControl::endRunMain(), start(), and ~ICPEventWriter().
|
private |
Definition at line 30 of file NeXusEventWriter.h.
|
private |
Definition at line 26 of file NeXusEventWriter.h.
Referenced by filename(), setup(), and start().
|
private |
Definition at line 29 of file NeXusEventWriter.h.
|
private |
Definition at line 28 of file NeXusEventWriter.h.
Referenced by snapshot(), snapshotOld(), start(), and stop().
|
private |
Definition at line 27 of file NeXusEventWriter.h.
|
private |
Definition at line 32 of file NeXusEventWriter.h.
Referenced by filename(), and setup().
|
private |
Definition at line 31 of file NeXusEventWriter.h.