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

Method sendReplacementTree

src/osvr/Common/SystemComponent.cpp:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 }
132
133 void SystemComponent::sendReplacementTree(PathTree &tree) {
134 auto config = pathTreeToJson(tree);
135 Buffer<> buf;
136 messages::ReplacementTreeFromServer::MessageSerialization msg(config);
137 serialize(buf, msg);
138 m_getParent().packMessage(buf, treeOut.getMessageType());
139
140 m_getParent().sendPending(); // forcing this since it will cause
141 // shuffling of remotes on the client.
142 }
143 void SystemComponent::registerReplaceTreeHandler(JsonHandler cb) {
144 if (m_replaceTreeHandlers.empty()) {
145 m_registerHandler(&SystemComponent::m_handleReplaceTree, this,

Callers 1

m_sendTreeMethod · 0.80

Calls 5

pathTreeToJsonFunction · 0.85
serializeFunction · 0.85
packMessageMethod · 0.80
getMessageTypeMethod · 0.80
sendPendingMethod · 0.80

Tested by

no test coverage detected