WvStreams
catmgr.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) 2003, Net Integration Technologies, Inc.
5 * Copyright (C) 2003, 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_CATMGR_H__
24#define __XPLC_CATMGR_H__
25
26#include <xplc/ICategoryManager.h>
27#include "categorynode.h"
28
31private:
32 CategoryNode* categories;
33public:
35 virtual ~CategoryManager();
36 /* ICategoryManager */
37 virtual void registerComponent(const UUID&, const UUID&, const char*);
38 virtual ICategory* getCategory(const UUID&);
39};
40
41#endif /* __XPLC_CATMGR_H__ */
virtual void registerComponent(const UUID &, const UUID &, const char *)
Register a component with a category.
Definition catmgr.cc:43
virtual ICategory * getCategory(const UUID &)
Get a category object for the specified category.
Definition catmgr.cc:72
Let you register categories and obtain information about them.
#define IMPLEMENT_IOBJECT(component)
Helper macro to implement the IObject methods automatically.