Go to the documentation of this file. 1 #ifndef CondFormats_SerializationHelper_SerializationHelperFactory_h 2 #define CondFormats_SerializationHelper_SerializationHelperFactory_h 33 #define DEFINE_COND_CLASSNAME(type_) \ 34 namespace cond::serialization { \ 36 struct ClassName<type_> { \ 37 constexpr static std::string_view kName = #type_; \ 41 #define DEFINE_COND_SERIAL_REGISTER_PLUGIN(type_) \ 42 DEFINE_COND_CLASSNAME(type_) \ 44 cond::serialization::SerializationHelperFactory, cond::serialization::SerializationHelper<type_>, #type_) 46 #define DEFINE_COND_SERIAL_REGISTER_PLUGIN_INIT(type_, init_) \ 47 namespace cond::serialization { \ 49 struct ClassName<type_> { \ 50 constexpr static std::string_view kName = #type_; \ 53 using EDM_PLUGIN_SYM(SerializationHelper, __LINE__) = cond::serialization::SerializationHelper<type_, init_>; \ 55 cond::serialization::SerializationHelperFactory, EDM_PLUGIN_SYM(SerializationHelper, __LINE__), #type_)