WvStreams
xplc
statichandler.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-2003, Pierre Phaneuf
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public License
8
* as published by the Free Software Foundation; either version 2.1 of
9
* the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19
* USA
20
*/
21
22
#ifndef __XPLC_STATICHANDLER_H__
23
#define __XPLC_STATICHANDLER_H__
24
25
#include <xplc/IStaticServiceHandler.h>
26
#include "objectnode.h"
27
28
class
StaticServiceHandler
:
public
IStaticServiceHandler
{
29
IMPLEMENT_IOBJECT(
StaticServiceHandler
);
30
private
:
31
ObjectNode
* objects;
32
public
:
33
StaticServiceHandler
():
34
objects(0) {
35
}
36
virtual
~
StaticServiceHandler
();
37
/* IServiceHandler */
38
virtual
IObject
*
getObject
(
const
UUID
&);
39
/* IStaticServiceHandler */
40
virtual
void
addObject
(
const
UUID
&,
IObject
*);
41
virtual
void
removeObject
(
const
UUID
&);
42
};
43
44
#endif
/* __XPLC_STATICHANDLER_H__ */
IStaticServiceHandler
Service handler for statically linked components.
Definition:
IStaticServiceHandler.h:36
StaticServiceHandler::addObject
virtual void addObject(const UUID &, IObject *)
Adds an object to the static service handler.
Definition:
statichandler.cc:69
IObject
Definition:
IObject.h:65
StaticServiceHandler::getObject
virtual IObject * getObject(const UUID &)
Get the object corresponding to the given UUID.
Definition:
statichandler.cc:49
StaticServiceHandler
Definition:
statichandler.h:28
StaticServiceHandler::removeObject
virtual void removeObject(const UUID &)
Removes an object from the static service handler.
Definition:
statichandler.cc:96
_GUID
The structure underlying UUIDs.
Definition:
uuid.h:94
ObjectNode
Definition:
objectnode.h:27
Generated by
1.8.17