9 #ifndef CFileOutputStream_H 10 #define CFileOutputStream_H 29 size_t Read(
void* Buffer,
size_t Count)
override;
30 size_t Write(
const void* Buffer,
size_t Count)
override;
size_t Read(void *Buffer, size_t Count) override
Introduces a pure virtual method responsible for reading from the stream.
bool fileOpenCorrectly()
Returns true if the file was open without errors.
void close()
Close the stream.
uint64_t Seek(uint64_t Offset, CStream::TSeekOrigin Origin=sFromBeginning) override
Introduces a pure virtual method for moving to a specified position in the streamed resource...
TSeekOrigin
Used in CStream::Seek.
bool open(const std::string &fileName, bool append=false)
Open the given file for write.
std::ofstream m_of
The actual output file stream.
uint64_t getPosition() 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...
This CStream derived class allow using a file as a write-only, binary stream.
GLsizei const GLchar ** string
unsigned __int64 uint64_t
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CFileOutputStream()
Default constructor.
GLsizei const GLfloat * value
CFileOutputStream & operator=(const CFileOutputStream &)=delete
bool is_open()
Returns true if the file was open without errors.
virtual ~CFileOutputStream()
Destructor.
size_t Write(const void *Buffer, size_t Count) override
Introduces a pure virtual method responsible for writing to the stream.
uint64_t getTotalBytesCount() override
Method for getting the total number of bytes writen to buffer.