vrtree_cpp

Namespace containing a collection of helper functions for simplifying reading of C++ objects out of the C API (e.g. strings, etc)

Classes

Helper struct to take any handle and close it appropriately.


Helper structure that provides a reference count that persists between refcounted handle copies.


Reference counted wrapper around a handle. Automatically closes the handle when there are no references left.


Utility class providing an interface for responding to changes to specified metanodes; with an additional update function, which will be called every time a frame is drawn.


Wraps a class implementing static observer functions accepting refcounted handles.


Typedefs


Reference counted FFI handle.


Reference counted metanode handle.


Reference counted migration handle.


Reference counted node handle.

Functions


static std::string getNodeName(HNode node)

Utility function for getting the name of a node.

Uses an internal buffer to provide to the C API, and copies it into the returned std::string object.


static std::string getNodePath(HNode node)

Utility function for getting the path of a node.

Uses an internal buffer to provide to the C API, and copies it into the returned std::string object.


static std::string readStringProp(HNode node,
const char * propName
)

Utility function for reading a string property.

Uses an internal buffer to provide to the C API, and copies it into the returned std::string object.


static std::string readStringProp(HNode node,
uint32_t prop
)

Utility function for reading a string property.

Uses an internal buffer to provide to the C API, and copies it into the returned std::string object.


void RegisterObserver(const char * metaName)

Registers a class implementing static observer functions as an observer of the specified metanode.


void UnRegisterObserver(const char * metaName)

Unregisters a class implementing static observer functions as an observer of the specified metanode.

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtreevrtree_cppvtCoreCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesSettingsTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API