This class is the base class for the service classes. More...
#include <llservice.h>
Static Public Member Functions | |
static LLIOPipe * | activate (const std::string &name, LLPumpIO::chain_t &chain, LLSD context) |
This method connects to a service by name. | |
static bool | discard (const std::string &name) |
static bool | registerCreator (const std::string &name, creator_t fn) |
This method is used to register a protocol name with a a functor that creates the service. |
This class is the base class for the service classes.
The services map a string to a chain factory with a known interface at the front of the chain. So, to activate a service, call activate()
with the name of the service needed which will call the associated factory, and return a pointer to the known interface. NOTE: If you are implementing a service factory, it is vitally important that the service pipe is at the front of the chain.
LLIOPipe * LLService::activate | ( | const std::string & | name, | |
LLPumpIO::chain_t & | chain, | |||
LLSD | context | |||
) | [static] |
This method connects to a service by name.
name | The name of the service to connect to. | |
chain | The constructed chain including the service instance. | |
context | Context for the activation. |
bool LLService::discard | ( | const std::string & | name | ) | [static] |
name | The name of the service to discard. |
bool LLService::registerCreator | ( | const std::string & | name, | |
creator_t | fn | |||
) | [static] |
This method is used to register a protocol name with a a functor that creates the service.
THOROUGH_DESCRIPTION
aParameter | A brief description of aParameter. |