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

Namespaces

 openscenario_interpreter
 
 openscenario_interpreter::syntax
 

Macros

#define BOILERPLATE(NAME, IDENTIFIER)
 
#define BOILERPLATE(NAME, ID)
 

Functions

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

Macro Definition Documentation

◆ BOILERPLATE [1/2]

#define BOILERPLATE (   NAME,
  ID 
)
Value:
case ParameterType::ID: \
return os << NAME;

◆ BOILERPLATE [2/2]

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