WSF
WsfXIO_Request Class Referenceabstract

#include <WsfXIO_Request.hpp>

Inheritance diagram for WsfXIO_Request:

Public Member Functions

 WsfXIO_Request (WsfXIO_Connection *aConnectionPtr, bool aIsReliable=true)
virtual void HandleResponse (WsfXIO_ResponsePkt &aPkt)
void SendRequest (WsfXIO_RequestDataPkt &aPkt)
 Sends the request to the remote application.
WsfXIO_ConnectionGetConnection () const
 Returns the connection to the application from which data is requested.
bool IsReliable () const
 Returns 'true' if data for this request is to be sent reliably.
int GetRequestId () const
 Returns the request's locally unique ID.
void SetRequestManager (WsfXIO_RequestManager *aRequestManagerPtr)
 Sets the owner of this request.
void SendResponse (WsfXIO_ResponsePkt &aPkt)

Protected Member Functions

virtual ~WsfXIO_Request ()
virtual void Initialized ()=0
void SetRequestId (unsigned int aRequestId)
void SetRemotelyDestroyed ()
bool IsRemotelyDestroyed () const
void SetIsReliable (bool aIsReliable)

Friends

class WsfXIO_RequestManager

Detailed Description

WsfXIO_Request maintains the lifetime of a subscription request. WsfXIO_Request is destroyed when the subscription is no longer available

Constructor & Destructor Documentation

◆ WsfXIO_Request()

◆ ~WsfXIO_Request()

WsfXIO_Request::~WsfXIO_Request ( )
protectedvirtual

Member Function Documentation

◆ GetConnection()

◆ GetRequestId()

int WsfXIO_Request::GetRequestId ( ) const
inline

Returns the request's locally unique ID.

Referenced by WsfXIO_RequestManager::RequestCancelled().

◆ HandleResponse()

virtual void WsfXIO_Request::HandleResponse ( WsfXIO_ResponsePkt & aPkt)
inlinevirtual

◆ Initialized()

virtual void WsfXIO_Request::Initialized ( )
protectedpure virtual

◆ IsReliable()

bool WsfXIO_Request::IsReliable ( ) const
inline

Returns 'true' if data for this request is to be sent reliably.

◆ IsRemotelyDestroyed()

bool WsfXIO_Request::IsRemotelyDestroyed ( ) const
inlineprotected

◆ SendRequest()

◆ SendResponse()

void WsfXIO_Request::SendResponse ( WsfXIO_ResponsePkt & aPkt)

Sends a 'response' message to the service. Can only be used after the request has been initialized

References WsfXIO_ResponsePkt::mFromProvider, and WsfXIO_ResponsePkt::mRequestId.

◆ SetIsReliable()

void WsfXIO_Request::SetIsReliable ( bool aIsReliable)
inlineprotected

◆ SetRemotelyDestroyed()

void WsfXIO_Request::SetRemotelyDestroyed ( )
inlineprotected

◆ SetRequestId()

void WsfXIO_Request::SetRequestId ( unsigned int aRequestId)
inlineprotected

◆ SetRequestManager()

void WsfXIO_Request::SetRequestManager ( WsfXIO_RequestManager * aRequestManagerPtr)
inline

Sets the owner of this request.

References WsfXIO_RequestManager.

Referenced by WsfXIO_RequestManager::AddRequest().

◆ WsfXIO_RequestManager


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved