Output file handle.
More...
#include <path.hpp>
|
bool | Open (const std::string &path) |
| Open output file for writing.
|
|
void | Close () |
| Close output file.
|
|
bool | Write (const std::vector< uint8_t > &data) |
| Write data to file.
|
|
bool | Write (const uint8_t *data, const std::size_t size) |
| Write data to file.
|
|
Output file handle.
Definition at line 60 of file path.hpp.
◆ Open()
bool fpsdk::common::path::OutputFile::Open |
( |
const std::string & | path | ) |
|
Open output file for writing.
- Parameters
-
[in] | path | The path / filename, can end in ".gz" for compressed output |
- Returns
- true on success, failure otherwise
◆ Write() [1/2]
bool fpsdk::common::path::OutputFile::Write |
( |
const std::vector< uint8_t > & | data | ) |
|
Write data to file.
- Parameters
-
[in] | data | The data to be written |
- Returns
- true on success, false otherwise
◆ Write() [2/2]
bool fpsdk::common::path::OutputFile::Write |
( |
const uint8_t * | data, |
|
|
const std::size_t | size ) |
Write data to file.
- Parameters
-
[in] | data | The data to be written |
[in] | size | The size of the data to be written |
- Returns
- true on success, false otherwise
The documentation for this class was generated from the following file:
- fpsdk_common/include/fpsdk_common/path.hpp