Class YamlLogger

Inheritance Relationships

Base Type

Class Documentation

class YamlLogger : public rmf_traffic_ros2::schedule::AbstractParticipantLogger

YAML logger class. Logs everything to YAML buffers on disk.

Public Functions

YamlLogger(std::string filename)

Constructor Loads and logs to the specified file.

Throws:
  • YAML::ParserException – if there is an error in the syntax of log file.

  • YAML::BadFile – if there are problems with reading the file.

  • std::filesystem_error – if there is no permission to create the directory.

virtual void write_operation(AtomicOperation operation) override

See AbstractParticipantLogger.

virtual std::optional<AtomicOperation> read_next_record() override

See AbstractParticipantLogger

Throws:

std::runtime_error – if there was an error in the logfile.