44 bool openFile(
const std::string &fileName,
const std::string &mode)
override;
45 void saveBlock(
const std::vector<float> & ,
const uint64_t )
const override;
46 void saveBlock(
const std::vector<double> & ,
const uint64_t )
const override {
48 "Saving double presision events blocks is not supported at the moment");
50 void loadBlock(std::vector<float> & ,
const uint64_t ,
51 const size_t )
const override;
52 void loadBlock(std::vector<double> & ,
const uint64_t ,
53 const size_t )
const override {
55 "Loading double presision events blocks is not supported at the "
64 void setDataType(
const size_t blockSize,
const std::string &typeName)
override;
65 void getDataType(
size_t &CoordSize, std::string &typeName)
const override;
The class responsible for dummy IO operations, which mimic saving events into a direct access file us...
bool openFile(const std::string &fileName, const std::string &mode) override
Open the file to use in IO operations with events.
bool m_isOpened
identified of the file state, if it is open or not.
void getDataType(size_t &CoordSize, std::string &typeName) const override
As save/load operations use void data type, these function allow set up/get the type name provided fo...
int64_t getNDataColums() const
void saveBlock(const std::vector< float > &, const uint64_t) const override
Save block of data into properly opened and initiated direct access data file.
std::vector< float > fileContents
~BoxControllerDummyIO() override
size_t getDataChunk() const override
Return the size of the NeXus data block used in NeXus data array.
void copyFileTo(const std::string &) override
Copy the file contents to a new location.
void saveBlock(const std::vector< double > &, const uint64_t) const override
Save a double data block in the specified file position.
void closeFile() override
Close the file.
bool m_ReadOnly
identifier if the file open only for reading or is in read/write
std::string m_fileName
full file name (with path) of the Nexis file responsible for the IO operations (as NeXus filename has...
unsigned int m_CoordSize
number of bytes in the event coorinates (coord_t length).
void setDataType(const size_t blockSize, const std::string &typeName) override
The optional method to set up the event type and the size of the event coordinate As save/load operat...
void flushData() const override
flush the IO buffers
bool isOpened() const override
void loadBlock(std::vector< float > &, const uint64_t, const size_t) const override
Load a block of data from properly prepared direct access data file.
void loadBlock(std::vector< double > &, const uint64_t, const size_t) const override
const std::string & getFileName() const override
get the full file name of the file used for IO operations
const Mantid::API::BoxController * m_bc
shared pointer to the box controller, which is repsoponsible for this IO
This class is used by MDBox and MDGridBox in order to intelligently determine optimal behavior.
The header describes interface to IO Operations perfomed by the box controller May be replaced by a b...
Marks code as not implemented yet.