OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::common::InterfaceState Class Reference

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

#include <osvr/Common/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.

Definition at line 66 of file InterfaceState.h.

Member Function Documentation

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?

Definition at line 86 of file InterfaceState.h.


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