Go to the documentation of this file.
   19 #include <farm_ng/core/event.pb.h> 
   36       google::protobuf::Message 
const& 
message,
 
   37       google::protobuf::RepeatedPtrField<core::proto::Timestamp> 
const&
 
   60       std::string 
const& path,
 
   61       google::protobuf::Message 
const& 
message,
 
   62       std::vector<core::proto::Timestamp> 
const& timestamps =
 
   63           std::vector<core::proto::Timestamp>());
 
   65       std::string 
const& path,
 
   66       google::protobuf::Message 
const& 
message,
 
   67       google::protobuf::RepeatedPtrField<core::proto::Timestamp> 
const&
 
   71   [[nodiscard]] std::filesystem::path 
getPath()
 const { 
return log_path_; }
 
   78   std::filesystem::path log_path_;
 
   80   std::unique_ptr<EventLogWriterImpl> impl_;
 
  
 
Definition: backtrace.cpp:102
 
virtual ~EventLogWriter() noexcept
Main destructor.
Definition: event_log_writer.cpp:124
 
auto makeWriteStamp() -> core::proto::Timestamp
Definition: event_log_writer.cpp:56
 
std::filesystem::path getPath() const
Returns the path including the fileaname.
Definition: event_log_writer.h:71
 
Class that serializes incoming protobuf events to a file in disk.
Definition: event_log_writer.h:45
 
virtual ssize_t getBytesWritten()=0
Returns the number of bytes written to the file so far.
 
virtual void write(std::string path, google::protobuf::Message const &message, google::protobuf::RepeatedPtrField< core::proto::Timestamp > const ×tamps)=0
 
cmake message("farm_ng_cmake_DIR" ${farm_ng_cmake_DIR}) include($
Definition: CMakeLists.txt:8
 
Implementation of the EventLogWriter class.
Definition: event_log_writer.h:29
 
void write(std::string const &path, google::protobuf::Message const &message, std::vector< core::proto::Timestamp > const ×tamps=std::vector< core::proto::Timestamp >())
Writes an incoming protobuf in the log file.
Definition: event_log_writer.cpp:126
 
EventLogWriter(std::filesystem::path const &log_path)
Main constructor of the class.
Definition: event_log_writer.cpp:109
 
ssize_t getBytesWritten()
Returns the number of bytes written to the file so far.
Definition: event_log_writer.cpp:145
 
virtual ~EventLogWriterImpl()
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rh-dtor
Definition: event_log_writer.h:32