26 #ifndef INCLUDED_ResourcePath_h_GUID_00432A94_11D2_47B4_7493_4F66E635FBE2
27 #define INCLUDED_ResourcePath_h_GUID_00432A94_11D2_47B4_7493_4F66E635FBE2
91 std::string GetString()
const;
105 std::size_t GetDepth()
const;
118 typedef std::vector<std::size_t> IndexArray;
119 IndexArray m_components;
124 #endif // INCLUDED_ResourcePath_h_GUID_00432A94_11D2_47B4_7493_4F66E635FBE2
The main namespace for all C++ elements of the framework, internal and external.
std::string GetHostString() const
Gets the host portion of the path as a string.
std::string GetComponent(std::size_t i) const
Gets the identified component, where 0 is the name of the component immediately under the root...
Class representing a host and resource path in the OSVR logical system.
std::string GetPathString() const
Gets the path following the hostname as a string, starting with a leading slash.
ResourcePath()
Default constructor - initializes to osvr://localhost/ (root)
ResourcePath GetChild(std::string const &childName) const
Go to the named child. The name may include slashes for multiple levels.
ResourcePath GetParent() const
Go to parent path.