LLSDRPCResponse Class Reference

#include <llsdrpcclient.h>

Inheritance diagram for LLSDRPCResponse:

Inheritance graph
[legend]
Collaboration diagram for LLSDRPCResponse:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLSDRPCResponse ()
virtual ~LLSDRPCResponse ()
bool extractResponse (const LLSD &sd)
 This method extracts the response out of the sd passed in.

Protected Member Functions

virtual bool response (LLPumpIO *pump)=0
 Method called when the response is ready.
virtual bool fault (LLPumpIO *pump)=0
 Method called when a fault is generated by the remote server.
virtual bool error (LLPumpIO *pump)=0
 Method called when there was an error.
virtual EStatus process_impl (const LLChannelDescriptors &channels, buffer_ptr_t &buffer, bool &eos, LLSD &context, LLPumpIO *pump)
 Process the data in buffer.

Protected Attributes

LLSD mReturnValue
bool mIsError
bool mIsFault

Detailed Description

Definition at line 60 of file llsdrpcclient.h.


Constructor & Destructor Documentation

LLSDRPCResponse::LLSDRPCResponse (  ) 

LLSDRPCResponse

Definition at line 54 of file llsdrpcclient.cpp.

References LLMemType::MTYPE_IO_SD_CLIENT.

LLSDRPCResponse::~LLSDRPCResponse (  )  [virtual]

Definition at line 62 of file llsdrpcclient.cpp.

References LLMemType::MTYPE_IO_SD_CLIENT.


Member Function Documentation

virtual bool LLSDRPCResponse::error ( LLPumpIO pump  )  [protected, pure virtual]

Method called when there was an error.

Implemented in tut::rpc_server_data::LLSimpleRPCResponse.

Referenced by process_impl().

bool LLSDRPCResponse::extractResponse ( const LLSD sd  ) 

This method extracts the response out of the sd passed in.

Any appropriate data found in the sd passed in will be extracted and managed by this object - not copied or cloned. It will still be up to the caller to delete the pointer passed in.

Parameters:
sd The raw structured data response from the remote server.
Returns:
Returns true if this was able to parse the structured data.

Definition at line 67 of file llsdrpcclient.cpp.

References LLSD::clear(), LLSDRPC_FAULT_NAME(), LLSDRPC_RESPONSE_NAME(), mIsError, mIsFault, mReturnValue, LLMemType::MTYPE_IO_SD_CLIENT, and tut::sd().

Referenced by LLSDRPCClient::process_impl().

virtual bool LLSDRPCResponse::fault ( LLPumpIO pump  )  [protected, pure virtual]

Method called when a fault is generated by the remote server.

Implemented in tut::rpc_server_data::LLSimpleRPCResponse.

Referenced by process_impl().

LLIOPipe::EStatus LLSDRPCResponse::process_impl ( const LLChannelDescriptors channels,
buffer_ptr_t buffer,
bool &  eos,
LLSD context,
LLPumpIO pump 
) [protected, virtual]

Process the data in buffer.

Definition at line 91 of file llsdrpcclient.cpp.

References error(), fault(), mIsError, mIsFault, LLMemType::MTYPE_IO_SD_CLIENT, PUMP_DEBUG, response(), and LLIOPipe::STATUS_DONE.

virtual bool LLSDRPCResponse::response ( LLPumpIO pump  )  [protected, pure virtual]

Method called when the response is ready.

Implemented in tut::rpc_server_data::LLSimpleRPCResponse.

Referenced by process_impl().


Member Data Documentation

bool LLSDRPCResponse::mIsError [protected]

Definition at line 110 of file llsdrpcclient.h.

Referenced by extractResponse(), and process_impl().

bool LLSDRPCResponse::mIsFault [protected]

Definition at line 111 of file llsdrpcclient.h.

Referenced by extractResponse(), and process_impl().

LLSD LLSDRPCResponse::mReturnValue [protected]

Definition at line 109 of file llsdrpcclient.h.

Referenced by extractResponse(), tut::rpc_server_data::LLSimpleRPCResponse::fault(), and tut::rpc_server_data::LLSimpleRPCResponse::response().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:45 2010 for Second Life Viewer by  doxygen 1.4.7