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

Namespaces

 openscenario_interpreter
 
 openscenario_interpreter::syntax
 

Macros

#define BOILERPLATE(IDENTIFIER)
 
#define BOILERPLATE(IDENTIFIER)
 
#define BOILERPLATE(ID)
 

Functions

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

Macro Definition Documentation

◆ BOILERPLATE [1/3]

#define BOILERPLATE (   ID)
Value:
case ReferenceContext::ID: \
return os << #ID;

◆ BOILERPLATE [2/3]

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

◆ BOILERPLATE [3/3]

#define BOILERPLATE (   IDENTIFIER)
Value:
if (buffer == #IDENTIFIER) { \
throw UNSUPPORTED_ENUMERATION_VALUE_SPECIFIED(ReferenceContext, buffer); \
} \
static_assert(true, "")
#define UNSUPPORTED_ENUMERATION_VALUE_SPECIFIED(TYPE, VALUE)
Definition: error.hpp:42