Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

gadget::InputData Class Reference

Base class for all input data returned by Gadgeteer. More...

#include <InputData.h>

Inheritance diagram for gadget::InputData:

Inheritance graph
[legend]
List of all members.

Public Methods

 InputData ()
 Constructor. More...

void setTime ()
 Record the current time using the vpr::Interval. More...

void setTime (const vpr::Interval &iv)
 Record the given time. More...

vpr::Interval getTime () const
 Return the last marked time using the vpr::Interval. More...


Protected Methods

void copy (const InputData &id)

Protected Attributes

vpr::Interval mTimeStamp

Detailed Description

Base class for all input data returned by Gadgeteer.

This provides all input data with a standard timestamping system used to calculate input latency.

Definition at line 48 of file InputData.h.


Constructor & Destructor Documentation

gadget::InputData::InputData   [inline]
 

Constructor.

Definition at line 53 of file InputData.h.

00054    {
00055       ;
00056    }


Member Function Documentation

void gadget::InputData::setTime   [inline]
 

Record the current time using the vpr::Interval.

Definition at line 59 of file InputData.h.

00060    {
00061       mTimeStamp.setNow();
00062    }

void gadget::InputData::setTime const vpr::Interval &    iv [inline]
 

Record the given time.

Definition at line 65 of file InputData.h.

00066    {
00067       mTimeStamp = iv;
00068    }

vpr::Interval gadget::InputData::getTime   const [inline]
 

Return the last marked time using the vpr::Interval.

Definition at line 71 of file InputData.h.

00072    {
00073       return mTimeStamp;
00074    }

void gadget::InputData::copy const InputData &    id [inline, protected]
 

Definition at line 78 of file InputData.h.

00079    {
00080       mTimeStamp = id.mTimeStamp;
00081    }


Member Data Documentation

vpr::Interval gadget::InputData::mTimeStamp [protected]
 

Definition at line 83 of file InputData.h.


The documentation for this class was generated from the following file:
Generated on Sun May 2 14:27:00 2004 for Gadgeteer by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002