Made to Order Software Corporation Logo

LLChatLib: LLService Class Reference

LLService Class Reference

This class is the base class for the service classes. More...

#include <llservice.h>

Inheritance diagram for LLService:
Collaboration diagram for LLService:

List of all members.

Static Public Member Functions

static LLIOPipeactivate (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.


Detailed Description

This class is the base class for the service classes.

See also:
LLIOPipe

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.


Member Function Documentation

LLIOPipe * LLService::activate ( const std::string &  name,
LLPumpIO::chain_t chain,
LLSD  context 
) [static]

This method connects to a service by name.

Parameters:
name The name of the service to connect to.
chain The constructed chain including the service instance.
context Context for the activation.
Returns:
An instance of the service for use or NULL on failure.
bool LLService::discard ( const std::string &  name  )  [static]
Parameters:
name The name of the service to discard.
Returns:
true if service creator was found and discarded.
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

Parameters:
aParameter A brief description of aParameter.
Returns:
Returns true if a service was successfully registered.

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