Fixposition SDK 0.0.0-heads/main-0-g7b59b93
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::path::OutputFile Class Reference

Output file handle. More...

#include <path.hpp>

Public Member Functions

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.
 

Detailed Description

Output file handle.

Definition at line 60 of file path.hpp.

Member Function Documentation

◆ Open()

bool fpsdk::common::path::OutputFile::Open ( const std::string & path)

Open output file for writing.

Parameters
[in]pathThe 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]dataThe 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]dataThe data to be written
[in]sizeThe size of the data to be written
Returns
true on success, false otherwise

The documentation for this class was generated from the following file: