$darkmode
cloe::VehicleConf Struct Reference

#include <stack.hpp>

Inheritance diagram for cloe::VehicleConf:
Collaboration diagram for cloe::VehicleConf:

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
 
Confableoperator= (const Confable &other) noexcept
 
Confableoperator= (Confable &&other) noexcept
 
virtual void reset_schema ()
 
Schemaschema ()
 
const Schemaschema () 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, ComponentConfcomponents
 

Additional Inherited Members

- Protected Member Functions inherited from fable::Confable
virtual Schema schema_impl ()
 

Detailed Description

VehicleConf contains the configuration for instantiating a vehicle.

For example:

[
{
"from": {
"simulator": "default",
"index": 0
},
"name": "default"
},
{
"from": "default",
"name": "fuzzy",
}
]

Member Function Documentation

◆ from_conf()

void cloe::VehicleConf::from_conf ( const Conf c)
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.

Here is the call graph for this function:

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