MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / getInterface

Method getInterface

src/osvr/Common/ClientContext.cpp:71–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71ClientInterfacePtr OSVR_ClientContextObject::getInterface(const char path[]) {
72 ClientInterfacePtr ret;
73 if (!path) {
74 return ret;
75 }
76 std::string p(path);
77 if (p.empty()) {
78 return ret;
79 }
80 ret = make_shared<ClientInterface>(this, path,
81 ClientInterface::PrivateConstructor());
82 m_handleNewInterface(ret);
83 m_interfaces.push_back(ret);
84 return ret;
85}
86
87ClientInterfacePtr
88OSVR_ClientContextObject::releaseInterface(ClientInterface *iface) {

Callers 2

osvrClientGetInterfaceFunction · 0.45
operator()Method · 0.45

Calls 3

PrivateConstructorClass · 0.85
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected