LLChainIOFactory Class Reference

This class is an abstract base class for building io chains. More...

#include <llchainio.h>

Inheritance diagram for LLChainIOFactory:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 LLChainIOFactory ()
virtual ~LLChainIOFactory ()
virtual bool build (LLPumpIO::chain_t &chain, LLSD context) const =0
 Build the chian with in as the first and end as the last.

Detailed Description

This class is an abstract base class for building io chains.

This declares an abstract base class for a chain factory. The factory is used to connect an input pipe to the first pipe in the chain, and an output pipe to the last pipe in the chain. This will allow easy construction for buffer based io like services to for API centered IO while abstracting the input and output to simple data passing. To use this class, you should derive a class which implements the build method.

Definition at line 76 of file llchainio.h.


Constructor & Destructor Documentation

LLChainIOFactory::LLChainIOFactory (  ) 

LLChainIOFactory

Definition at line 65 of file llchainio.cpp.

LLChainIOFactory::~LLChainIOFactory (  )  [virtual]

Definition at line 70 of file llchainio.cpp.


Member Function Documentation

virtual bool LLChainIOFactory::build ( LLPumpIO::chain_t chain,
LLSD  context 
) const [pure virtual]

Build the chian with in as the first and end as the last.

The caller of the LLChainIOFactory is responsible for managing the memory of the in pipe. All of the chains generated by the factory will be ref counted as usual, so the caller will also need to break the links in the chain.

Parameters:
chain The chain which will have new pipes appended
context A context for use by this factory if you choose Returns true if the call was successful.

Implemented in LLSimpleIOFactory< Pipe >, LLCloneIOFactory< Pipe >, LLHTTPResponseFactory, LLChainIOFactoryForPipe< Pipe >, LLSDRPCClientFactory< Client >, LLXMLSDRPCClientFactory< Client >, LLSDRPCServerFactory< Server >, and LLXMLRPCServerFactory< Server >.

Referenced by LLHTTPResponder::process_impl().


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