47 #ifndef _MIRA_REFLECTORMACROS_H_ 48 #define _MIRA_REFLECTORMACROS_H_ 54 namespace serialization {
56 template <
typename Reflector>
59 typedef typename Reflector::ReflectState
State;
64 return r.preReflect(context);
79 typedef typename boost::mpl::eval_if<
80 typename Reflector::requireReflectBarriers,
81 boost::mpl::identity<__ReflectBarrier>,
82 boost::mpl::identity<__NoReflectBarrier>
115 #define MIRA_REFLECT_CALL(ReflectorType, reflector, context, COMMAND) \ 117 typedef typename serialization::ReflectCallHelper<ReflectorType>::BarrierType type; \ 119 typename ReflectorType::ReflectState state = type::preCommand(reflector, context); \ 121 type::postCommand(reflector, state); \ boost::mpl::eval_if< typename Reflector::requireReflectBarriers, boost::mpl::identity< __ReflectBarrier >, boost::mpl::identity< __NoReflectBarrier > >::type BarrierType
Definition: ReflectorMacros.h:83
Definition: ReflectorMacros.h:72
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Definition: ReflectorMacros.h:62
static State preCommand(Reflector &r, const char *context)
Definition: ReflectorMacros.h:63
static void postCommand(Reflector &r, const State &state)
Definition: ReflectorMacros.h:66
PropertyHint type(const std::string &t)
Sets the attribute "type" to the specified value.
Definition: PropertyHint.h:295
static State preCommand(Reflector &, const char *context)
Definition: ReflectorMacros.h:73
Reflector::ReflectState State
Definition: ReflectorMacros.h:59
Definition: ReflectorMacros.h:57
static void postCommand(Reflector &r, const State &state)
Definition: ReflectorMacros.h:74