|
PLCnext API Documentation 25.0.2.69
|
RSC wrapper class of Remoting client context. More...
#include <RscClientContext.hpp>
Public Types | |
| using | ReadDelegate = delegate< void(RscReader &)> |
| The RSC read data delegate type. | |
| using | WriteDelegate = delegate< void(RscWriter &)> |
| The RSC write data delegate type. | |
Public Member Functions | |
| RscClientContext (IRscServiceProxy &serviceProxy, RscHandle methodHandle, const char *methodName) | |
| RSC context for client calls. More... | |
| RscClientContext (const RscClientContext &arg)=delete | |
| RscClientContext (RscClientContext &&arg) noexcept=delete | |
| RscClientContext & | operator= (const RscClientContext &)=delete |
| RscClientContext & | operator= (RscClientContext &&) noexcept=delete |
| ~RscClientContext (void) | |
| Destructs this instance. | |
| RscReader & | GetReader (void) |
| Gets the RSC reader of this instance. More... | |
| RscWriter & | GetWriter (void) |
| Gets the RSC writer of this instance. More... | |
| void | SendRequest (WriteDelegate writeFunction) |
| Sends the request of the service call. More... | |
| void | ReceiveResponse (ReadDelegate readFunction) |
| Receives the response of the service call. More... | |
RSC wrapper class of Remoting client context.
This class is not intended for direct use, but required by RscGenerator to implement services.
| Arp::Base::Rsc::Commons::Services::RscClientContext::RscClientContext | ( | IRscServiceProxy & | serviceProxy, |
| RscHandle | methodHandle, | ||
| const char * | methodName | ||
| ) |
RSC context for client calls.
| serviceProxy | The service proxy to use. |
| methodHandle | The method handle of the operation to call. |
| methodName | The method name of the operation to call. |
| RscReader & Arp::Base::Rsc::Commons::Services::RscClientContext::GetReader | ( | void | ) |
Gets the RSC reader of this instance.
| RscWriter & Arp::Base::Rsc::Commons::Services::RscClientContext::GetWriter | ( | void | ) |
Gets the RSC writer of this instance.
| void Arp::Base::Rsc::Commons::Services::RscClientContext::ReceiveResponse | ( | ReadDelegate | readFunction | ) |
Receives the response of the service call.
| readFunction | The delegate to read the response data. |
| void Arp::Base::Rsc::Commons::Services::RscClientContext::SendRequest | ( | WriteDelegate | writeFunction | ) |
Sends the request of the service call.
| writeFunction | The delegate to write the request data. |