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