WvStreams
servmgr.h
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2  *
3  * XPLC - Cross-Platform Lightweight Components
4  * Copyright (C) 2000-2002, Pierre Phaneuf
5  * Copyright (C) 2001, Stéphane Lajoie
6  * Copyright (C) 2002-2004, Net Integration Technologies, Inc.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; either version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21  * USA
22  */
23 
24 #ifndef __XPLC_SERVMGR_H__
25 #define __XPLC_SERVMGR_H__
26 
27 #include <xplc/IServiceManager.h>
28 #include "handlernode.h"
29 
31  IMPLEMENT_IOBJECT(ServiceManager);
32 private:
33  HandlerNode* handlers;
34 public:
36  handlers(0) {
37  }
38  virtual ~ServiceManager();
39  /* IServiceManager */
40  virtual void addHandler(IServiceHandler*);
41  virtual void addFirstHandler(IServiceHandler*);
42  virtual void addLastHandler(IServiceHandler*);
43  virtual void removeHandler(IServiceHandler*);
44  virtual IObject* getObject(const UUID&);
45 };
46 
47 #endif /* __XPLC_SERVMGR_H__ */
IServiceManager
Definition: IServiceManager.h:58
ServiceManager::addFirstHandler
virtual void addFirstHandler(IServiceHandler *)
Register a handler to be handled by this manager, explicitly adding it to the beginning of the list (...
Definition: servmgr.cc:154
ServiceManager::removeHandler
virtual void removeHandler(IServiceHandler *)
Remove a handler from the list.
Definition: servmgr.cc:199
ServiceManager
Definition: servmgr.h:30
ServiceManager::addHandler
virtual void addHandler(IServiceHandler *)
Register a handler to be handled by this manager.
Definition: servmgr.cc:128
IServiceHandler
Definition: IServiceHandler.h:43
ServiceManager::addLastHandler
virtual void addLastHandler(IServiceHandler *)
Register a handler to be handled by this manager, explicitly adding it to the end of the list (lowest...
Definition: servmgr.cc:175
HandlerNode
Definition: handlernode.h:27
IObject
Definition: IObject.h:65
_GUID
The structure underlying UUIDs.
Definition: uuid.h:94
ServiceManager::getObject
virtual IObject * getObject(const UUID &)
Get the object corresponding to the given UUID.
Definition: servmgr.cc:217
IServiceManager.h