Go to the documentation of this file.
77 size_t Read(
void* Buffer,
size_t Count)
override;
78 size_t Write(
const void* Buffer,
size_t Count)
override;
TSeekOrigin
Used in CStream::Seek.
void close()
Close the stream.
size_t Write(const void *Buffer, size_t Count) override
Introduces a pure virtual method responsible for writing to the stream.
bool open(const std::string &fileName, bool append=false)
Open the given file for write.
virtual ~CFileOutputStream()
Destructor.
uint64_t getTotalBytesCount() const override
Method for getting the total number of bytes writen to buffer.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::ofstream m_of
The actual output file stream.
uint64_t getPosition() const override
Method for getting the current cursor position, where 0 is the first byte and TotalBytesCount-1 the l...
unsigned __int64 uint64_t
bool fileOpenCorrectly() const
Returns true if the file was open without errors.
uint64_t Seek(int64_t Offset, CStream::TSeekOrigin Origin=sFromBeginning) override
Introduces a pure virtual method for moving to a specified position in the streamed resource.
CFileOutputStream()
Default constructor.
CFileOutputStream & operator=(const CFileOutputStream &)=delete
This CStream derived class allow using a file as a write-only, binary stream.
size_t Read(void *Buffer, size_t Count) override
Introduces a pure virtual method responsible for reading from the stream.
GLsizei const GLfloat * value
GLsizei const GLchar ** string
bool is_open()
Returns true if the file was open without errors.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |