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

Method createVirtualDevice

src/osvr/Connection/DeviceToken.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64DeviceTokenPtr
65OSVR_DeviceTokenObject::createVirtualDevice(std::string const &name,
66 ConnectionPtr const &conn) {
67 DeviceInitObject init(conn);
68 init.setName(name);
69 DeviceTokenPtr ret(new VirtualDeviceToken(name));
70 ret->m_sharedInit(init);
71 return ret;
72}
73
74OSVR_DeviceTokenObject::OSVR_DeviceTokenObject(std::string const &name)
75 : m_name(name) {}

Callers

nothing calls this directly

Calls 2

setNameMethod · 0.80
m_sharedInitMethod · 0.80

Tested by

no test coverage detected