clientproxy.h
char drivername[PLAYER_MAX_DRIVER_STRING_LEN]
The driver name.
Definition: playerc.h:877
PlayerClient * GetPlayerClient() const
Get a pointer to the Player Client.
Definition: clientproxy.h:235
int GetIntProp(char *aProperty, int32_t *aValue)
Request an integer property.
double lasttime
Data timestamp from the previous data.
Definition: playerc.h:887
void DisconnectReadSignal(connection_t aSubscriber)
Disconnect a signal from this proxy.
Definition: clientproxy.h:390
bool IsValid() const
Proxy has any information.
Definition: clientproxy.h:197
Definition: playerclient.h:96
int HasCapability(uint32_t aType, uint32_t aSubtype)
Request capabilities of device.
int GetStrProp(char *aProperty, char **aValue)
Request a string property.
uint32_t GetInterface() const
Get Interface Code.
Definition: clientproxy.h:251
int GetBoolProp(char *aProperty, bool *aValue)
Request a boolean property.
int SetDblProp(char *aProperty, double aValue)
Set a double property.
std::string GetInterfaceStr() const
Get Interface Name.
Definition: clientproxy.h:258
connection_t ConnectReadSignal(T aSubscriber)
Connect a read signal to this proxy.
Definition: clientproxy.h:376
int SetStrProp(char *aProperty, char *aValue)
Set a string property.
void SetReplaceRule(bool aReplace, int aType=-1, int aSubtype=-1)
Set a replace rule for this proxy on the server.
bool IsFresh() const
Check for fresh data.
Definition: clientproxy.h:206
int SetIntProp(char *aProperty, int32_t aValue)
Set an integer property.
std::string GetDriverName() const
Get the underlying driver's name.
Definition: clientproxy.h:221
double GetElapsedTime() const
Returns the time between the current data time and the time of the last data sample [s].
Definition: clientproxy.h:228
mutex_t mMutex
A mutex for handling synchronization.
Definition: playerclient.h:181
The PlayerClient is used for communicating with the player server.
Definition: playerclient.h:121
int SetBoolProp(char *aProperty, bool aValue)
Set a boolean property.
double datatime
Data timestamp, i.e., the time at which the data was generated (s).
Definition: playerc.h:884
int GetDblProp(char *aProperty, double *aValue)
Request a double property.
double GetDataTime() const
Returns the received timestamp of the last data sample [s].
Definition: clientproxy.h:224
uint32_t GetIndex() const
Get device index.
Definition: clientproxy.h:243
uint16_t interf
The interface provided by the device; must be one of PLAYER_*_CODE.
Definition: player.h:153