OSVR-Core
Public Member Functions | List of all members
osvr::common::InterfaceState Class Reference

Class to maintain state for an interface for each report (and thus state) type explicitly enumerated. More...

#include <InterfaceState.h>

Public Member Functions

template<typename ReportType >
void setStateFromReport (util::time::TimeValue const &timestamp, ReportType const &report)
 
template<typename ReportType >
bool hasState () const
 
bool hasAnyState () const
 
template<typename ReportType >
void getState (util::time::TimeValue &timestamp, traits::StateFromReport_t< ReportType > &state) const
 

Detailed Description

Class to maintain state for an interface for each report (and thus state) type explicitly enumerated.

Member Function Documentation

§ getState()

template<typename ReportType >
void osvr::common::InterfaceState::getState ( util::time::TimeValue timestamp,
traits::StateFromReport_t< ReportType > &  state 
) const
inline
Todo:
do we fail silently or throw exception if we are asked for state we don't have?

The documentation for this class was generated from the following file: