#include <llchainio.h>
Inheritance diagram for LLChainIOFactory:
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. |
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.
LLChainIOFactory::LLChainIOFactory | ( | ) |
Definition at line 65 of file llchainio.cpp.
LLChainIOFactory::~LLChainIOFactory | ( | ) | [virtual] |
Definition at line 70 of file llchainio.cpp.
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 >, LLHTTPResponseFactory, LLChainIOFactoryForPipe< Pipe >, LLSDRPCClientFactory< Client >, LLXMLSDRPCClientFactory< Client >, LLSDRPCServerFactory< Server >, and LLXMLRPCServerFactory< Server >.
Referenced by LLHTTPResponder::process_impl().