SimpleFileInterface¶
-
class SimpleFileInterface¶
abstract base classes for simple file interfaces should simplify reading different file formats for angular calibration
Simple FileInterface to read from simple ascii files or raw files into a bytestream
Note
some functions are pure virtual and must be implemented by the derived classes
Subclassed by angcal::CustomBadChannelsFile, angcal::CustomFlatFieldFile, angcal::CustomMythenFile, angcal::InitialAngCalParametersFile
Public Functions
-
inline virtual void open(const std::string &filename)¶
read file into an array
- Parameters:
array – view of the array
- Returns:
void
-
virtual void read_into(std::byte *image_buf, const ssize_t data_type_bytes = 1) = 0¶
read into byte buffer
- Parameters:
data_type_bytes – if buffer from a vector or array provide number of bytes for datatype
-
inline virtual ~SimpleFileInterface()¶
-
inline virtual void open(const std::string &filename)¶