Public Member Functions | |
Device info | |
virtual const char * | getDeviceName () const=0 |
Returns the device name. | |
virtual const char * | getClassName () const=0 |
Returns the device class name. | |
Synchronous calls | |
virtual rdaData * | get (const char *propName)=0 throw (rdaBadParameter, rdaTimeOut, rdaNoConnection, rdaIOError, rdaInternalException, rdaInternalError) |
Returns the value of the device property. | |
virtual rdaData * | get (const char *propName, const rdaData &context)=0 throw (rdaBadParameter,rdaTimeOut, rdaNoConnection, rdaIOError, rdaInternalException, rdaInternalError) |
Returns the value of the device property within the specified context. | |
virtual rdaData * | get (const char *propName, const char *cycleSelector)=0 throw (rdaBadParameter, rdaTimeOut, rdaNoConnection, rdaIOError, rdaInternalException, rdaInternalError) |
Returns the value of the device property for the specified cycle. | |
virtual rdaData * | get (const char *propName, const char *cycleSelector, const rdaData &context)=0 throw (rdaBadParameter, rdaTimeOut, rdaNoConnection, rdaIOError, rdaInternalException, rdaInternalError) |
Returns the value of the device property for the specified cycle and within the specified context. | |
virtual void | set (const char *propName, const rdaData &value)=0 throw (rdaBadParameter, rdaTimeOut, rdaNoConnection, rdaIOError, rdaInternalException, rdaInternalError) |
Sets the value of the device property. | |
virtual void | set (const char *propName, const rdaData &value, const rdaData &context)=0 throw (rdaBadParameter, rdaTimeOut, rdaNoConnection, rdaIOError, rdaInternalException, rdaInternalError) |
Sets the value of the device property within the specified context. | |
virtual void | set (const char *propName, const char *cycleSelector, const rdaData &value)=0 throw (rdaBadParameter, rdaTimeOut, rdaNoConnection, rdaIOError, rdaInternalException, rdaInternalError) |
Sets the value of the device property for the specified cycle. | |
virtual void | set (const char *propName, const char *cycleSelector, const rdaData &value, const rdaData &context)=0 throw (rdaBadParameter, rdaTimeOut, rdaNoConnection, rdaIOError, rdaInternalException, rdaInternalError) |
Sets the value of the device property for the specified cycle and within the specified context. | |
Asynchronous calls | |
virtual void | get (const char *propName, rdaReplyHandler *replyHandler)=0 throw (rdaBadParameter, rdaNoConnection, rdaInternalException, rdaInternalError) |
Sends to the device a request to read the property value. | |
virtual void | get (const char *propName, rdaReplyHandler *replyHandler, const rdaData &context)=0 throw (rdaBadParameter, rdaNoConnection, rdaInternalException, rdaInternalError) |
Sends to the device a request to read the property value within the specified context. | |
virtual void | get (const char *propName, const char *cycleSelector, rdaReplyHandler *replyHandler)=0 throw (rdaBadParameter, rdaNoConnection, rdaInternalException, rdaInternalError) |
Sends to the device a request to read the property value for the specified cycle. | |
virtual void | get (const char *propName, const char *cycleSelector, rdaReplyHandler *replyHandler, const rdaData &context)=0 throw (rdaBadParameter, rdaNoConnection, rdaInternalException, rdaInternalError) |
Sends to the device a request to read the property value for the specified cycle and within the specified contex. | |
virtual void | set (const char *propName, const rdaData &value, rdaReplyHandler *replyHandler)=0 throw (rdaBadParameter, rdaNoConnection, rdaInternalException, rdaInternalError) |
Sends to the device a request to set the property value. | |
virtual void | set (const char *propName, const rdaData &value, rdaReplyHandler *replyHandler, const rdaData &context)=0 throw (rdaBadParameter, rdaNoConnection, rdaInternalException, rdaInternalError) |
Sends to the device a request to set the property value within the specified context. | |
virtual void | set (const char *propName, const char *cycleSelector, const rdaData &value, rdaReplyHandler *replyHandler)=0 throw (rdaBadParameter, rdaNoConnection, rdaInternalException, rdaInternalError) |
Sends to the device a request to set the property value for the specified cycle. | |
virtual void | set (const char *propName, const char *cycleSelector, const rdaData &value, rdaReplyHandler *replyHandler, const rdaData &context)=0 throw (rdaBadParameter, rdaNoConnection, rdaInternalException, rdaInternalError) |
Sends to the device a request to set the property value for the specified cycle and within the specified context. | |
Subscription | |
virtual rdaRequest * | monitorOn (const char *propName, bool onChange, rdaReplyHandler *replyHandler)=0 throw (rdaBadParameter, rdaTimeOut, rdaNoConnection, rdaIOError, rdaInternalException, rdaInternalError) |
Starts a subscription on the property value. | |
virtual rdaRequest * | monitorOn (const char *propName, bool onChange, rdaReplyHandler *replyHandler, const rdaData &context)=0 throw (rdaBadParameter, rdaTimeOut, rdaNoConnection, rdaIOError, rdaInternalException, rdaInternalError) |
Starts a subscription on the property value within the specified context. | |
virtual rdaRequest * | monitorOn (const char *propName, const char *cycleSelector, bool onChange, rdaReplyHandler *replyHandler)=0 throw (rdaBadParameter, rdaTimeOut, rdaNoConnection, rdaIOError, rdaInternalException, rdaInternalError) |
Starts a subscription on the property value for the specified cycle. | |
virtual rdaRequest * | monitorOn (const char *propName, const char *cycleSelector, bool onChange, rdaReplyHandler *replyHandler, const rdaData &context)=0 throw (rdaBadParameter, rdaTimeOut, rdaNoConnection, rdaIOError, rdaInternalException, rdaInternalError) |
Starts a subscription on the property value for the specified cycle and within the specified context. | |
virtual void | monitorOff (rdaRequest *request)=0 throw (rdaBadParameter, rdaTimeOut) |
Cancels a subscription initiated by the specified request. |
An object of this class acts as a proxy which represents a remote device to the local client, and delegates device calls, made by the client, to the device server.
The class provides several groups of the device access methods.
The class also provides a <A HREF="#info>group of methods that allow to obtain some information on the associated device.
GetAsync.cpp, GetSync.cpp, and Monitor.cpp.
|
Sends to the device a request to read the property value for the specified cycle and within the specified contex. The call returns when the request has been sent to the device. The operation results will be delivered to the replyHandler object, see rdaReplyHandler for the description of callback methods which can be invoked in this phase.
|
|
Sends to the device a request to read the property value for the specified cycle. The call returns when the request has been sent to the device. The operation results will be delivered to the replyHandler object, see rdaReplyHandler for the description of callback methods which can be invoked in this phase.
|
|
Sends to the device a request to read the property value within the specified context. The call returns when the request has been sent to the device. The operation results will be delivered to the replyHandler object, see rdaReplyHandler for the description of callback methods which can be invoked in this phase.
|
|
Sends to the device a request to read the property value. The call returns when the request has been sent to the device. The operation results will be delivered to the replyHandler object, see rdaReplyHandler for the description of callback methods which can be invoked in this phase.
|
|
Returns the value of the device property for the specified cycle and within the specified context.
|
|
Returns the value of the device property for the specified cycle.
|
|
Returns the value of the device property within the specified context.
|
|
Returns the value of the device property.
|
|
Cancels a subscription initiated by the specified request.
This is a blocking call that propagates down to the device server. In case of timeout, the subscription remains active in the client and may or may not be removed in the server. You can retry the call to definitely remove the server side monitor. A successful
In principle, each
|
|
Starts a subscription on the property value for the specified cycle and within the specified context. If a monitorOn call completes successfully then the rdaReplyHandler object specified as an argument to the call will be notified each time the subscribed value is updated or an attempt to update the value fails due to an I/O error (see rdaReplyHandler for the description of callback methods that can be invoked as a result of this call). If "on-change" mode has been specified in the call then only the value which is different from the previous one will be reported to the client. monitorOn is a blocking call that propagates down to the device server. On the server side, it installs a "monitor" on the specified value. Each monitor takes some resources (CPU time, memory, I/O bandwidth) in the server. The call fails if the monitor cannot be installed due to lack of the resources. On success, the call returns a pointer to the subscription request object that has been sent to the server. The subscription can be cancelled using the monitorOff call with this pointer as an argument.
|
|
Starts a subscription on the property value for the specified cycle. If a monitorOn call completes successfully then the rdaReplyHandler object specified as an argument to the call will be notified each time the subscribed value is updated or an attempt to update the value fails due to an I/O error (see rdaReplyHandler for the description of callback methods that can be invoked as a result of this call). If "on-change" mode has been specified in the call then only the value which is different from the previous one will be reported to the client. monitorOn is a blocking call that propagates down to the device server. On the server side, it installs a "monitor" on the specified value. Each monitor takes some resources (CPU time, memory, I/O bandwidth) in the server. The call fails if the monitor cannot be installed due to lack of the resources. On success, the call returns a pointer to the subscription request object that has been sent to the server. The subscription can be cancelled using the monitorOff call with this pointer as an argument.
|
|
Starts a subscription on the property value within the specified context. If a monitorOn call completes successfully then the rdaReplyHandler object specified as an argument to the call will be notified each time the subscribed value is updated or an attempt to update the value fails due to an I/O error (see rdaReplyHandler for the description of callback methods that can be invoked as a result of this call). If "on-change" mode has been specified in the call then only the value which is different from the previous one will be reported to the client. monitorOn is a blocking call that propagates down to the device server. On the server side, it installs a "monitor" on the specified value. Each monitor takes some resources (CPU time, memory, I/O bandwidth) in the server. The call fails if the monitor cannot be installed due to lack of the resources. On success, the call returns a pointer to the subscription request object that has been sent to the server. The subscription can be cancelled using the monitorOff call with this pointer as an argument.
|
|
Starts a subscription on the property value. If a monitorOn call completes successfully then the rdaReplyHandler object specified as an argument to the call will be notified each time the subscribed value is updated or an attempt to update the value fails due to an I/O error (see rdaReplyHandler for the description of callback methods that can be invoked as a result of this call). If "on-change" mode has been specified in the call then only the value which is different from the previous one will be reported to the client. monitorOn is a blocking call that propagates down to the device server. On the server side, it installs a "monitor" on the specified value. Each monitor takes some resources (CPU time, memory, I/O bandwidth) in the server. The call fails if the monitor cannot be installed due to lack of the resources. On success, the call returns a pointer to the subscription request object that has been sent to the server. The subscription can be cancelled using the monitorOff call with this pointer as an argument.
|
|
Sends to the device a request to set the property value for the specified cycle and within the specified context. The call returns when the request has been sent to the device. The operation results will be reported to the replyHandler object, see rdaReplyHandler for the description of callback methods which can be invoked in this phase.
|
|
Sends to the device a request to set the property value for the specified cycle. The call returns when the request has been sent to the device. The operation results will be reported to the replyHandler object, see rdaReplyHandler for the description of callback methods which can be invoked in this phase.
|
|
Sends to the device a request to set the property value within the specified context. The call returns when the request has been sent to the device. The operation results will be reported to the replyHandler object, see rdaReplyHandler for the description of callback methods which can be invoked in this phase.
|
|
Sends to the device a request to set the property value. The call returns when the request has been sent to the device. The operation results will be reported to the replyHandler object, see rdaReplyHandler for the description of callback methods which can be invoked in this phase.
|
|
Sets the value of the device property for the specified cycle and within the specified context. This call returns when the value has been set in the device.
|
|
Sets the value of the device property for the specified cycle. This call returns when the value has been set in the device.
|
|
Sets the value of the device property within the specified context. This call returns when the value has been set in the device.
|
|
Sets the value of the device property. This call returns when the value has been set in the device.
|