$darkmode
#include <stack.hpp>
Public Member Functions | |
| VehicleConf (const ComponentSchema &s) | |
| bool | is_from_simulator () const |
| bool | is_from_vehicle () const |
| void | clear () |
| CONFABLE_SCHEMA (VehicleConf) | |
| void | from_conf (const Conf &c) override |
| void | to_json (Json &j) const override |
Public Member Functions inherited from fable::Confable | |
| Confable (const Confable &) noexcept | |
| Confable (Confable &&) noexcept=default | |
| Confable & | operator= (const Confable &other) noexcept |
| Confable & | operator= (Confable &&other) noexcept |
| virtual void | reset_schema () |
| Schema & | schema () |
| const Schema & | schema () const |
| virtual void | validate_or_throw (const Conf &c) const |
| virtual bool | validate (const Conf &c, std::optional< SchemaError > &err) const |
| virtual void | to_json (Json &j) const |
| Json | to_json () const |
Public Attributes | |
| std::string | name |
| FromSimulator | from_sim |
| std::string | from_veh |
| std::map< std::string, ComponentConf > | components |
Additional Inherited Members | |
Protected Member Functions inherited from fable::Confable | |
| virtual Schema | schema_impl () |
VehicleConf contains the configuration for instantiating a vehicle.
For example:
|
inlineoverridevirtual |
Deserialize a Confable from a Conf.
Unless you have special needs, it is recommended to implement
Schema schema_impl()
and use the default implementation of this.
Reimplemented from fable::Confable.