This class is an abstract base class for building io chains. More...
#include <llchainio.h>
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 () |
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.
LLChainIOFactory::LLChainIOFactory | ( | ) |
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.
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 >.