BinaryFileAccess provides abstraction on underlying file system.
More...
#include <BinaryFile.h>
|
| virtual std::vector< uint8_t > | ReadAll (const std::string &path)=0 |
| | Reads whole file as binary to memory.
|
| virtual void | WriteAll (const std::string &path, const std::vector< uint8_t > &content)=0 |
| | Writes whole given memory to file as binary.
|
BinaryFileAccess provides abstraction on underlying file system.
◆ ReadAll()
| virtual std::vector< uint8_t > ReadAll |
( |
const std::string & | path | ) |
|
|
pure virtual |
Reads whole file as binary to memory.
- Parameters
-
- Returns
- file content
- Exceptions
-
| FileException | on problem with file system |
Implemented in FilesystemAccess.
◆ WriteAll()
| virtual void WriteAll |
( |
const std::string & | path, |
|
|
const std::vector< uint8_t > & | content ) |
|
pure virtual |
Writes whole given memory to file as binary.
- Parameters
-
| path | file path |
| content | content to write |
- Exceptions
-
| FileException | on problem with file system |
Implemented in FilesystemAccess.
The documentation for this class was generated from the following file: