farm-ng-core
farm_ng::EventLogWriterBinaryImpl Class Reference
Inheritance diagram for farm_ng::EventLogWriterBinaryImpl:
Collaboration diagram for farm_ng::EventLogWriterBinaryImpl:

Public Member Functions

 EventLogWriterBinaryImpl (std::filesystem::path const &log_path)
 
void write (std::string path, google::protobuf::Message const &message, google::protobuf::RepeatedPtrField< core::proto::Timestamp > const &timestamps) override
 
ssize_t getBytesWritten () override
 Returns the number of bytes written to the file so far. More...
 
- Public Member Functions inherited from farm_ng::EventLogWriterImpl
virtual ~EventLogWriterImpl ()
 https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rh-dtor More...
 

Public Attributes

std::filesystem::path log_path
 
std::ofstream out
 

Constructor & Destructor Documentation

◆ EventLogWriterBinaryImpl()

farm_ng::EventLogWriterBinaryImpl::EventLogWriterBinaryImpl ( std::filesystem::path const &  log_path)
inline

Member Function Documentation

◆ getBytesWritten()

ssize_t farm_ng::EventLogWriterBinaryImpl::getBytesWritten ( )
inlineoverridevirtual

Returns the number of bytes written to the file so far.

Implements farm_ng::EventLogWriterImpl.

◆ write()

void farm_ng::EventLogWriterBinaryImpl::write ( std::string  path,
google::protobuf::Message const &  message,
google::protobuf::RepeatedPtrField< core::proto::Timestamp > const &  timestamps 
)
inlineoverridevirtual

Member Data Documentation

◆ log_path

std::filesystem::path farm_ng::EventLogWriterBinaryImpl::log_path

◆ out

std::ofstream farm_ng::EventLogWriterBinaryImpl::out

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