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

Method getState

inc/osvr/Common/ClientInterface.h:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 /// will be returned in the arguments, and true will be returned.
67 template <typename ReportType>
68 bool getState(osvr::util::time::TimeValue &timestamp,
69 typename osvr::common::traits::StateType<ReportType>::type &
70 state) const {
71 osvr::common::tracing::markGetState(m_path);
72 if (!m_state.hasState<ReportType>()) {
73 return false;
74 }
75 m_state.getState<ReportType>(timestamp, state);
76 return true;
77 }
78
79 template <typename ReportType> bool hasStateForReportType() const {
80 return m_state.hasState<ReportType>();

Callers

nothing calls this directly

Calls 1

markGetStateFunction · 0.85

Tested by

no test coverage detected