WvStreams
xplc
catiter.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) 2004, Net Integration Technologies, Inc.
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_CATITER_H__
23
#define __XPLC_CATEITER_H__
24
25
#include <xplc/ICategory.h>
26
#include <xplc/ICategoryIterator.h>
27
#include "categorynode.h"
28
29
class
CategoryIterator
:
public
ICategoryIterator
{
30
IMPLEMENT_IOBJECT(
CategoryIterator
);
31
private
:
32
ICategory
* category;
33
CategoryEntryNode
* current;
34
public
:
35
CategoryIterator
(
ICategory
*,
CategoryEntryNode
*);
36
virtual
const
UUID
&
getUuid
();
37
virtual
const
char
*
getString
();
38
virtual
void
next
();
39
virtual
bool
done
();
40
virtual
~
CategoryIterator
();
41
};
42
43
#endif
/* __XPLC_CATEITER_H__ */
ICategory
Represents a category.
Definition:
ICategory.h:36
CategoryIterator::getString
virtual const char * getString()
Returns the string associated with the category entry.
Definition:
catiter.cc:48
CategoryEntryNode
Definition:
categorynode.h:28
CategoryIterator
Definition:
catiter.h:29
ICategoryIterator
Definition:
ICategoryIterator.h:36
CategoryIterator::getUuid
virtual const UUID & getUuid()
Returns the UUID of the category entry.
Definition:
catiter.cc:41
CategoryIterator::done
virtual bool done()
Tests if the iterator is past the last item.
Definition:
catiter.cc:60
CategoryIterator::next
virtual void next()
Advances to the next category entry.
Definition:
catiter.cc:55
_GUID
The structure underlying UUIDs.
Definition:
uuid.h:94
Generated by
1.8.17