PlayerCc::AioProxy Class Reference

The AioProxy class is used to read from a aio (analog I/O) device. More...

#include <playerc++.h>

Inheritance diagram for PlayerCc::AioProxy:
Collaboration diagram for PlayerCc::AioProxy:

List of all members.


Detailed Description

The AioProxy class is used to read from a aio (analog I/O) device.

Public Member Functions

 AioProxy (PlayerClient *aPc, uint32_t aIndex=0)
 Constructor.
 ~AioProxy ()
 Destructor.
uint32_t GetCount () const
 Get number of voltages.
double GetVoltage (uint32_t aIndex) const
 Get an input voltage.
void SetVoltage (uint32_t aIndex, double aVoltage)
 Set an output voltage.
double operator[] (uint32_t aIndex) const
 AioProxy data access operator.

Private Member Functions

void Subscribe (uint32_t aIndex)
void Unsubscribe ()

Private Attributes

playerc_aio_tmDevice

Member Function Documentation

double PlayerCc::AioProxy::operator[] ( uint32_t  aIndex) const [inline]

AioProxy data access operator.

This operator provides an alternate way of access the voltage data. For example, given a AioProxy named bp, the following expressions are equivalent: ap.GetVoltage(0) and ap[0].


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