53 #ifndef _MIRA_CHANNEL_PROMOTE_BY_TYPENAME_REGISTRATION_H_ 54 #define _MIRA_CHANNEL_PROMOTE_BY_TYPENAME_REGISTRATION_H_ 82 template <
typename PromoteTo,
typename ExtraDiscriminator>
83 class TypedChannelPromoter :
public TypedChannelPromoterBase
89 void promote(ConcreteChannel<
void>* channel)
const 91 channel_cast<PromoteTo>(channel);
97 return mira::typeName<PromoteTo>();
103 #ifdef MIRA_DISABLE_CHANNELPROMOTERS 105 #define MIRA_REGISTER_CHANNELTYPE(channeltype) 107 #ifndef MIRA_UNIQUE_IDENTIFIER_ENABLED 108 #pragma message("UniqueIdentifier not enabled. " \ 109 "MIRA_REGISTER_CHANNELTYPE disabled.") 110 #define MIRA_REGISTER_CHANNELTYPE(channeltype) 113 #define MIRA_REGISTER_CHANNELTYPE_UNIQUE_NAME \ 114 MIRA_FILE_LINE_IDENTIFIER 120 #define MIRA_REGISTER_CHANNELTYPE(channeltype) \ 121 class MIRA_REGISTER_CHANNELTYPE_UNIQUE_NAME{}; \ 122 MIRA_VARTEMPLATE_CLASS_REGISTER( \ 123 (mira), TypedChannelPromoter, 2, \ 124 (channeltype, MIRA_REGISTER_CHANNELTYPE_UNIQUE_NAME), \ 125 mira::TypedChannelPromoterBase) specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Determine a unique identifier (or string).
#define MIRA_META_OBJECT(classIdentifier, MetaInfo)
Use this MACRO instead of MIRA_OBJECT if you like to add meta information to your class...
Definition: FactoryMacros.h:204
The framework that holds all manager classes and provides startup and shutdown of all framework relat...
Typename typeName(bool cvqualify=true)
Returns a compiler and platform independent typename of T.
Definition: Typename.h:103