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

Method setName

src/osvr/Connection/DeviceInitObject.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 : m_context(nullptr), m_conn(conn), m_tracker(false) {}
46
47void OSVR_DeviceInitObject::setName(std::string const &n) {
48 m_name = n;
49 if (m_context) {
50 m_qualifiedName = m_context->getName() + "/" + m_name;
51 } else {
52 m_qualifiedName = m_name;
53 }
54}
55
56template <typename T>
57inline bool setOptional(OSVR_ChannelCount input, T ptr,

Callers 3

createVirtualDeviceMethod · 0.80
osvrDeviceGenericInitFunction · 0.80

Calls 1

getNameMethod · 0.80

Tested by

no test coverage detected