Made to Order Software Corporation Logo

LLChatLib: LLChainIOFactory Class Reference

LLChainIOFactory Class Reference

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

#include <llchainio.h>

Inheritance diagram for LLChainIOFactory:

List of all members.

Public Member Functions

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

 LLChainIOFactory ()

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.


Constructor & Destructor Documentation

LLChainIOFactory::LLChainIOFactory (  ) 

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 >, LLSDRPCClientFactory< Client >, and LLXMLSDRPCClientFactory< Client >.


The documentation for this class was generated from the following files:
  • /home/doug/src/oss/slitechat/trunk/LLChatLib/llmessage/llchainio.h
  • /home/doug/src/oss/slitechat/trunk/LLChatLib/llmessage/llchainio.cpp
Generated on Thu Sep 23 17:18:39 2010 for LLChatLib by  doxygen 1.6.3