scenario_simulator_v2 C++ API
Namespaces | Macros | Functions
vehicle_category.cpp File Reference
#include <iostream>
#include <openscenario_interpreter/error.hpp>
#include <openscenario_interpreter/syntax/vehicle_category.hpp>
#include <string>
Include dependency graph for vehicle_category.cpp:

Namespaces

 openscenario_interpreter
 
 openscenario_interpreter::syntax
 

Macros

#define BOILERPLATE(IDENTIFIER)
 
#define BOILERPLATE(NAME)
 

Functions

auto openscenario_interpreter::syntax::operator>> (std::istream &, VehicleCategory &) -> std::istream &
 
auto openscenario_interpreter::syntax::operator<< (std::ostream &, const VehicleCategory &) -> std::ostream &
 

Macro Definition Documentation

◆ BOILERPLATE [1/2]

#define BOILERPLATE (   IDENTIFIER)
Value:
if (buffer == #IDENTIFIER) { \
category.value = VehicleCategory::IDENTIFIER; \
return is; \
} \
static_assert(true, "")

◆ BOILERPLATE [2/2]

#define BOILERPLATE (   NAME)
Value:
case VehicleCategory::NAME: \
return os << #NAME;