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

Namespaces

 openscenario_interpreter
 
 openscenario_interpreter::syntax
 

Macros

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

Functions

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

Macro Definition Documentation

◆ BOILERPLATE [1/3]

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

◆ BOILERPLATE [2/3]

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

◆ BOILERPLATE [3/3]

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