25 #ifndef INCLUDED_OriginalSource_h_GUID_B7D02DC3_ACFA_4BAF_85C5_8B70854700A7 26 #define INCLUDED_OriginalSource_h_GUID_B7D02DC3_ACFA_4BAF_85C5_8B70854700A7 29 #include <osvr/Common/Export.h> 36 #include <boost/optional.hpp> 55 OSVR_COMMON_EXPORT
bool isResolved()
const;
63 void nestTransform(Json::Value
const &
transform);
71 getDeviceElement()
const;
74 OSVR_COMMON_EXPORT std::string getInterfaceName()
const;
78 OSVR_COMMON_EXPORT boost::optional<int> getSensorNumber()
const;
79 OSVR_COMMON_EXPORT boost::optional<OSVR_ChannelCount>
80 getSensorNumberAsChannelCount()
const;
82 OSVR_COMMON_EXPORT Json::Value getTransformJson()
const;
83 OSVR_COMMON_EXPORT
bool hasTransform()
const;
86 std::string m_getPath()
const;
95 #endif // INCLUDED_OriginalSource_h_GUID_B7D02DC3_ACFA_4BAF_85C5_8B70854700A7 The result of resolving a tree node to a device: either an original source to connect to...
Definition: OriginalSource.h:47
Handles spatial transformations.
Definition: SerializationTraitExample_Complicated.h:40
A node in a generic tree, which can contain an object by value.
Definition: TreeNode.h:72
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
OSVR_COMMON_EXPORT std::string getDevicePath() const
Gets the full path of the device node.
Definition: OriginalSource.cpp:73
The element type corresponding to a device, which implements 0 or more interfaces.
Definition: PathElementTypes.h:113
t_< detail::transform_< List, Fun >> transform
Given a list and an alias class, apply the alias class to each element in the list and return the res...
Definition: Transform.h:54
OSVR_COMMON_EXPORT void decompose(PathNode &node)
Decompose a path node representing an original source into its device, interface, and sensor...
Definition: OriginalSource.cpp:210
Header forward-declaring the types in PathElementTypes.h and including the PathElement typedef...