By default, all interfaces in the Connect class are required. More...
#include <connect.h>
Public Member Functions | |
| ConnectConfig ()=default | |
| bool | is_optional (const std::string &iface_name) const |
Static Public Member Functions | |
| template<typename FirstIface , typename... RestIfaces> | |
| static ConnectConfig | optional () |
By default, all interfaces in the Connect class are required.
Attempting to connect an object that does not implement the required interfaces will cause a runtime error. Use this class and pass it as CTOR param of Connect class to make the interface check optional. Optional interfaces can be verified by testing if the get_iface member of the interface has a nullptr value.
|
default |
|
inline |
|
inlinestatic |