com::pcbsys::nirvana::client::nRequestResponseContainer Class Reference

This class is the container for the request responses. More...

#include <nRequestResponseContainer.h>

Inherits Countable.

Public Member Functions

nSynchronous * getRequest ()
 Gets the request associated with this request-response container. More...
 
nEvent * getResponse ()
 Gets the response associated with this request-response container. More...
 
 nRequestResponseContainer (nSynchronous *pEvent)
 Constructs an nRequestResponseContainer object. More...
 
void setResponse (nEvent *pEvent)
 Sets the response associated with this request-response container. More...
 

Detailed Description

This class is the container for the request responses.

Constructor & Destructor Documentation

com::pcbsys::nirvana::client::nRequestResponseContainer::nRequestResponseContainer ( nSynchronous *  pEvent)

Constructs an nRequestResponseContainer object.

Parameters
*pEventthe synchronous request associated with this request-response container

Member Function Documentation

nSynchronous* com::pcbsys::nirvana::client::nRequestResponseContainer::getRequest ( )

Gets the request associated with this request-response container.

Returns
an nSynchronous object specifying the request
nEvent* com::pcbsys::nirvana::client::nRequestResponseContainer::getResponse ( )

Gets the response associated with this request-response container.

Returns
an nEvent object specifying the response, if that has been received, null otherwise
void com::pcbsys::nirvana::client::nRequestResponseContainer::setResponse ( nEvent *  pEvent)

Sets the response associated with this request-response container.

Parameters
*pEventan nEvent object specifying the response