WSF
WsfCommMediumTypeIdentifier.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wsf::comm::medium::Role< T >
struct  wsf::comm::medium::Role< T >::always_false< U >
struct  wsf::comm::medium::cMEDIUM_ROLE< T >

Namespaces

namespace  wsf
 Function definitions for those who need run-time access to the version.
namespace  wsf::comm
namespace  wsf::comm::medium

Macros

#define WSF_COMM_MEDIUM_DECLARE_ROLE_TYPE(TYPE, ROLE)

Enumerations

enum  wsf::comm::medium::TypeIdentifier : int { wsf::comm::medium::cNONE = 0 , wsf::comm::medium::cGUIDED , wsf::comm::medium::cUNGUIDED }

Macro Definition Documentation

◆ WSF_COMM_MEDIUM_DECLARE_ROLE_TYPE

#define WSF_COMM_MEDIUM_DECLARE_ROLE_TYPE ( TYPE,
ROLE )
Value:
template<> \
struct Role<TYPE> : std::integral_constant<int, ROLE> \
{ \
static_assert(std::is_base_of<Medium, TYPE>::value, \
"Cannot register medium role for type that does not derive from wsf::comm::medium::Medium"); \
static_assert(value > 0, "Medium role must be > 0"); \
};
Copyrights Multiple, All Rights Reserved