Class FlagError

Inheritance Relationships

Derived Types

Class Documentation

class FlagError

Base class for different errors that are based on setting bits of one byte.

Subclassed by husarion_ugv_hardware_interfaces::FaultFlag, husarion_ugv_hardware_interfaces::RuntimeError, husarion_ugv_hardware_interfaces::ScriptFlag

Public Functions

FlagError(const std::vector<std::string> &flag_names, const std::vector<std::string> &suppressed_flags_names = {})

Sets which flags should be ignored when checking if an error occurred when converting to message true data still will be set.

virtual ~FlagError() = default
inline void SetData(const std::uint8_t flags)
inline bool IsError() const
std::string GetErrorLog() const

Protected Attributes

const std::vector<std::string> flag_names_
std::bitset<8> suppressed_flags_ = 0
std::bitset<8> flags_ = 0