![]() |
Dataflow Runtime API
2.7.4.0
|
Encapsulates a file. More...
#include <Imt.Base.OS.WinEC7/OSFile.h>
Public Member Functions | |
OSFile (const std::wstring &fileName) | |
Constructor. | |
virtual | ~OSFile (void) |
Destructor. | |
const std::wstring & | getName (void) const |
Gets the name of the file. More... | |
bool | create (void) const |
Creates a file. More... | |
bool | removeFile (void) const |
Deletes a file. More... | |
bool | exists (void) const |
Checks if a file exists. More... | |
uint32_t | size (void) const |
Returns the file size. More... | |
bool | read (uint8_t buffer[], const uint32_t bufferSize, const uint32_t readOffset) const |
Reads data from the OSFile into buffer. More... | |
bool | write (const uint8_t buffer[], const uint32_t bufferSize) |
Writes data from the buffer into the OSFile, overwriting any existing data. More... | |
Encapsulates a file.
bool imt::base::os::winec7::OSFile::create | ( | void | ) | const |
Creates a file.
bool imt::base::os::winec7::OSFile::exists | ( | void | ) | const |
Checks if a file exists.
const std::wstring& imt::base::os::winec7::OSFile::getName | ( | void | ) | const |
Gets the name of the file.
bool imt::base::os::winec7::OSFile::read | ( | uint8_t | buffer[], |
const uint32_t | bufferSize, | ||
const uint32_t | readOffset | ||
) | const |
Reads data from the OSFile into buffer.
buffer[] | read buffer |
bufferSize | read buffer size |
readOffset | is incremented on a successful read |
bool imt::base::os::winec7::OSFile::removeFile | ( | void | ) | const |
Deletes a file.
uint32_t imt::base::os::winec7::OSFile::size | ( | void | ) | const |
Returns the file size.
bool imt::base::os::winec7::OSFile::write | ( | const uint8_t | buffer[], |
const uint32_t | bufferSize | ||
) |
Writes data from the buffer into the OSFile, overwriting any existing data.
buffer[] | write buffer |
bufferSize | write buffer size |