63     size_t Read(
void* Buffer, 
size_t Count) 
override;
    64     size_t Write(
const void* Buffer, 
size_t Count) 
override;
 This CStream derived class allow using a file as a read/write binary stream, creating it if the file ...
 
TSeekOrigin
Used in CStream::Seek. 
 
uint64_t Seek(int64_t off, CStream::TSeekOrigin org=sFromBeginning) override
Introduces a pure virtual method for moving to a specified position in the streamed resource...
 
bool readLine(std::string &str)
Reads one string line from the file (until a new-line character) 
 
bool fileOpenCorrectly() const
Returns true if the file was open without errors. 
 
uint64_t getPositionI()
The current Input cursor position, where 0 is the first byte. 
 
std::fstream m_f
The actual input file stream. 
 
void close()
Closes the file. 
 
size_t Read(void *Buffer, size_t Count) override
Introduces a pure virtual method responsible for reading from the stream. 
 
uint64_t getPosition() const override
Method for getting the current cursor position, where 0 is the first byte and TotalBytesCount-1 the l...
 
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
 
int TFileOpenModes
File open modes are used in CFileStream Posible values are: 
 
~CFileStream() override
Destructor. 
 
uint64_t getPositionO()
The current Input cursor position, where 0 is the first byte. 
 
bool is_open()
Returns true if the file was open without errors. 
 
void clearError()
Resets stream error status bits (e.g. 
 
CFileStream()
Constructor. 
 
bool open(const std::string &fileName, TFileOpenModes mode=fomRead|fomWrite)
Opens the file, returning true on success. 
 
size_t Write(const void *Buffer, size_t Count) override
Introduces a pure virtual method responsible for writing to the stream. 
 
bool checkEOF()
Will be true if EOF has been already reached. 
 
uint64_t getTotalBytesCount() const override
Returns the total amount of bytes in the stream. 
 
CFileStream & operator=(const CFileStream &)=delete