scenario_simulator_v2 C++ API
Namespaces | Macros | Functions
object_type.cpp File Reference
#include <istream>
#include <openscenario_interpreter/error.hpp>
#include <openscenario_interpreter/syntax/entity_action.hpp>
#include <openscenario_interpreter/syntax/entity_object.hpp>
#include <openscenario_interpreter/syntax/external_object_reference.hpp>
#include <openscenario_interpreter/syntax/object_type.hpp>
#include <openscenario_interpreter/utility/overload.hpp>
#include <ostream>
Include dependency graph for object_type.cpp:

Namespaces

 openscenario_interpreter
 
 openscenario_interpreter::syntax
 

Macros

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

Functions

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

Macro Definition Documentation

◆ BOILERPLATE [1/2]

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

◆ BOILERPLATE [2/2]

#define BOILERPLATE (   IDENTIFIER)
Value:
case ObjectType::IDENTIFIER: \
return os << #IDENTIFIER;