13#include <boost/noncopyable.hpp> 
   14#include <boost/shared_ptr.hpp> 
   62class ServerHooks : 
public boost::noncopyable {
 
  104    std::string 
getName(
int index) 
const;
 
  115    int getIndex(
const std::string& name) 
const;
 
  126    int findIndex(
const std::string& name) 
const;
 
  134        return (hooks_.size());
 
 
  232    typedef std::map<std::string, int> HookCollection;
 
  233    typedef std::map<int, std::string> InverseHookCollection;
 
  237    HookCollection  hooks_;                 
 
  238    InverseHookCollection inverse_hooks_;   
 
 
Exception(const char *file, size_t line, const char *what)
Constructor for a given type for exceptions with file name and file line number.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
DuplicateHook(const char *file, size_t line, const char *what)
NoSuchHook(const char *file, size_t line, const char *what)
static ServerHooksPtr getServerHooksPtr()
Returns pointer to ServerHooks object.
ParkingLotPtr getParkingLotPtr(const int hook_index)
Returns pointer to the ParkingLot for the specified hook index.
int getIndex(const std::string &name) const
Get hook index.
static ServerHooks & getServerHooks()
Return ServerHooks object.
static const int CONTEXT_DESTROY
ParkingLotsPtr getParkingLotsPtr() const
Returns pointer to all parking lots.
int findIndex(const std::string &name) const
Find hook index.
int getCount() const
Return number of hooks.
void reset()
Reset to Initial State.
static std::string hookToCommandName(const std::string &hook_name)
Returns command name for a specified hook name.
static std::string commandToHookName(const std::string &command_name)
Generates hook point name for the given control command name.
static const int CONTEXT_CREATE
Index numbers for pre-defined hooks.
int registerHook(const std::string &name)
Register a hook.
std::vector< std::string > getHookNames() const
Get hook names.
std::string getName(int index) const
Get hook name.
boost::shared_ptr< ParkingLots > ParkingLotsPtr
Type of the pointer to the parking lots.
boost::shared_ptr< ServerHooks > ServerHooksPtr
boost::shared_ptr< ParkingLot > ParkingLotPtr
Type of the pointer to the parking lot.
Defines the logger used by the top-level component of kea-lfc.