FileDeviceData
struct FileDeviceData : public karabo::devices::DeviceData
Functions
| Name | Description |
|---|---|
| updatePropsToIndex | Helper function to update data.m_idxprops, returns whether data.m_idxprops changed. |
| ensureFileClosed | Helper to ensure archive file is closed. |
| ensureFileOpen | Helper to ensure archive file (m_configStream) is open. |
Function Details
ensureFileClosed
void ensureFileClosed()
Helper to ensure archive file is closed. Must only be called from functions posted on 'data.m_strand'.
ensureFileOpen
std::pair<bool, size_t> ensureFileOpen()
Helper to ensure archive file (m_configStream) is open. Must only be called from functions posted on 'data.m_strand'.
Return : pair of * whether it is a new file (in contrast to a re-opened existing one) * current file position, size_t(-1) tells that file could not be opened (permissions?)
updatePropsToIndex
bool updatePropsToIndex()
Helper function to update data.m_idxprops, returns whether data.m_idxprops changed.