12#ifndef WSFCOMMMEDIUMTYPEIDENTIFIER_HPP
13#define WSFCOMMMEDIUMTYPEIDENTIFIER_HPP
31 "Type has no medium role registered. Use the WSF_COMM_MEDIUM_DECLARE_ROLE_TYPE macro to register the type.");
34#define WSF_COMM_MEDIUM_DECLARE_ROLE_TYPE(TYPE, ROLE) \
36 struct Role<TYPE> : std::integral_constant<int, ROLE> \
38 static_assert(std::is_base_of<Medium, TYPE>::value, \
39 "Cannot register medium role for type that does not derive from wsf::comm::medium::Medium"); \
40 static_assert(value > 0, "Medium role must be > 0"); \
Definition WsfCommMedium.cpp:31
TypeIdentifier
Definition WsfCommMediumTypeIdentifier.hpp:50
@ cUNGUIDED
Definition WsfCommMediumTypeIdentifier.hpp:53
@ cGUIDED
Definition WsfCommMediumTypeIdentifier.hpp:52
@ cNONE
Definition WsfCommMediumTypeIdentifier.hpp:51
Definition WsfComm.cpp:34
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Definition WsfCommMediumTypeIdentifier.hpp:27
Definition WsfCommMediumTypeIdentifier.hpp:24
Definition WsfCommMediumTypeIdentifier.hpp:45