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

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(), LLSD::has(), LLSDRPC_FAULT_NAME(), LLSDRPC_RESPONSE_NAME(), mIsError, mIsFault, mReturnValue, and LLMemType::MTYPE_IO_SD_CLIENT.

Referenced by LLSDRPCClient::process_impl().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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.

Here is the call graph for this function:


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().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:03:42 2008 for SecondLife by  doxygen 1.5.5