WvStreams
xplc
modulemgr.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) 2002-2004, Net Integration Technologies, Inc.
5
* Copyright (C) 2002-2004, Pierre Phaneuf
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public License
9
* as published by the Free Software Foundation; either version 2.1 of
10
* the License, or (at your option) any later version.
11
*
12
* This library is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20
* USA
21
*/
22
23
#ifndef __XPLC_MODULEMGR_H__
24
#define __XPLC_MODULEMGR_H__
25
26
#include <
xplc/utils.h
>
27
#include <xplc/IModuleManagerFactory.h>
28
29
class
ModuleManagerFactory
:
public
IModuleManagerFactory
{
30
IMPLEMENT_IOBJECT(
ModuleManagerFactory
);
31
private
:
32
public
:
33
static
ModuleManagerFactory
* create() {
34
return
new
ModuleManagerFactory
;
35
}
36
virtual
IServiceHandler
* createModuleManager(
const
char
* directory);
37
virtual
~
ModuleManagerFactory
() {}
38
};
39
40
struct
ModuleNode
;
41
42
class
ModuleManager
:
public
IServiceHandler
{
43
IMPLEMENT_IOBJECT(
ModuleManager
);
44
private
:
45
ModuleNode
* modules;
46
public
:
47
ModuleManager
(
ModuleNode
* aModules);
48
virtual
IObject
*
getObject
(
const
UUID
& cid);
49
virtual
~
ModuleManager
();
50
};
51
52
#endif
/* __XPLC_MODULEMGR_H__ */
ModuleManager::getObject
virtual IObject * getObject(const UUID &cid)
Get the object corresponding to the given UUID.
Definition:
modulemgr.cc:183
ModuleManager
Definition:
modulemgr.h:42
IServiceHandler
Definition:
IServiceHandler.h:43
utils.h
ModuleNode
Definition:
modulemgr.cc:69
IObject
Definition:
IObject.h:65
IModuleManagerFactory
Definition:
IModuleManagerFactory.h:31
_GUID
The structure underlying UUIDs.
Definition:
uuid.h:94
ModuleManagerFactory
Definition:
modulemgr.h:29
Generated by
1.8.17