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

Method addNodeData

src/osvr/Common/PathTreeSerialization.cpp:52–55  ·  view source on GitHub ↗

@brief Adds data from the PathNode to an object containing PathElement data.

Source from the content-addressed store, hash-verified

50 /// @brief Adds data from the PathNode to an object containing
51 /// PathElement data.
52 void addNodeData(PathNode const &node, Json::Value &val) {
53 val["path"] = getFullPath(node);
54 val["type"] = getTypeName(node);
55 }
56
57 template <typename T>
58 Json::Value operator()(PathNode const &node, T const &elt) {

Callers

nothing calls this directly

Calls 2

getFullPathFunction · 0.85
getTypeNameFunction · 0.70

Tested by

no test coverage detected