MCPcopy Create free account
hub / github.com/MITK/MITK / InsertInterfaceType

Function InsertInterfaceType

Modules/CppMicroServices/include/usServiceInterface.h:143–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142template<class I>
143bool InsertInterfaceType(InterfaceMap& im, I* i)
144{
145 if (us_service_interface_iid<I>().empty())
146 {
147 throw ServiceException(std::string("The interface class ") + typeid(I).name() +
148 " uses an invalid id in its US_DECLARE_SERVICE_INTERFACE macro call.");
149 }
150 im.insert(std::make_pair(std::string(us_service_interface_iid<I>()),
151 static_cast<void*>(static_cast<I*>(i))));
152 return true;
153}
154
155template<>
156inline bool InsertInterfaceType<void>(InterfaceMap&, void*)

Calls 2

emptyMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected