fort::hermes::FileContext¶
-
class FileContext : public fort::hermes::Context¶
A context that reads from a hermes file sequence.
Public Functions
-
FileContext(const std::string &filename, bool followFiles = true)¶
Open the file sequence starting with filename.
- Parameters
filename – the first file of the sequence to open
followFiles – if false, only this filename will be read, otherwise the complete sequence until the last segment is read by this context.
- Throws
InternalError – if filename is not a valid hermes file sequence
-
virtual void Read(fort::hermes::FrameReadout *ro)¶
Reads a FrameReadout from the Context.
- Parameters
ro – the FrameReadout to parse to
- Throws
EndOfFile – if the Context does not contains any other data
UnexpectedEndOfFileSequence – if a sequence of files does not end up gracefully
WouldBlock – if a non-blocking connection has no messages yet ready.
InternalError – if any other error occured
-
FileContext(const std::string &filename, bool followFiles = true)¶