8#include "MantidAPI/DllConfig.h"
35 virtual bool openFile(
const std::string &fileName,
const std::string &mode) = 0;
41 virtual void copyFileTo(
const std::string &destFilename) = 0;
44 virtual void saveBlock(
const std::vector<float> & ,
const uint64_t )
const = 0;
46 virtual void saveBlock(
const std::vector<double> & ,
const uint64_t )
const = 0;
48 virtual void loadBlock(std::vector<float> & ,
const uint64_t ,
49 const size_t )
const = 0;
50 virtual void loadBlock(std::vector<double> & ,
const uint64_t ,
51 const size_t )
const = 0;
66 virtual void setDataType(
const size_t blockSize,
const std::string &typeName) = 0;
67 virtual void getDataType(
size_t &blockSize, std::string &typeName)
const = 0;
The header describes interface to IO Operations perfomed by the box controller May be replaced by a b...
virtual void loadBlock(std::vector< double > &, const uint64_t, const size_t) const =0
virtual const std::string & getFileName() const =0
virtual void copyFileTo(const std::string &destFilename)=0
Copy the file contents to a new location.
virtual void getDataType(size_t &blockSize, std::string &typeName) const =0
virtual void loadBlock(std::vector< float > &, const uint64_t, const size_t) const =0
load known size float data block from spefied file position
virtual bool openFile(const std::string &fileName, const std::string &mode)=0
open file for i/o operations
virtual size_t getDataChunk() const =0
the method which returns the size of data block used in IO operations
virtual void saveBlock(const std::vector< double > &, const uint64_t) const =0
Save a double data block in the specified file position.
virtual void closeFile()=0
Close the file.
virtual bool isOpened() const =0
virtual void setDataType(const size_t blockSize, const std::string &typeName)=0
As save/load operations use void data type, these function allow set up/get the type name provided fo...
virtual void saveBlock(const std::vector< float > &, const uint64_t) const =0
Save a float data block in the specified file position.
virtual void flushData() const =0
flush the IO buffers
Buffer objects that need to be written out to disk so as to optimize writing operations.
Helper class which provides the Collimation Length for SANS instruments.