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

Method registerDirectionHandler

src/osvr/Common/DirectionComponent.cpp:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 void
107 DirectionComponent::registerDirectionHandler(DirectionHandler handler) {
108 if (m_cb.empty()) {
109 m_registerHandler(&DirectionComponent::m_handleDirectionRecord,
110 this, directionRecord.getMessageType());
111 }
112 m_cb.push_back(handler);
113 }
114 void DirectionComponent::m_parentSet() {
115 m_getParent().registerMessageType(directionRecord);
116 }

Callers 1

Calls 3

getMessageTypeMethod · 0.80
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected