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
32private:
33 HandlerNode* handlers;
34public:
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__ */
The basic interface which is included by all other XPLC interfaces and objects.
Interface to an object which can be used to find other objects, given their UUIDs.
virtual void removeHandler(IServiceHandler *)
Remove a handler from the list.
Definition servmgr.cc:199
virtual IObject * getObject(const UUID &)
Get the object corresponding to the given UUID.
Definition servmgr.cc:217
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
virtual void addHandler(IServiceHandler *)
Register a handler to be handled by this manager.
Definition servmgr.cc:128
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
#define IMPLEMENT_IOBJECT(component)
Helper macro to implement the IObject methods automatically.