WvStreams
unisubtreegen.h
1/* -*- Mode: C++ -*-
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4 *
5 * A UniConfGen for returning only a particular subtree of a given generator.
6 */
7
8#ifndef __UNISUBTREEGEN_H
9#define __UNISUBTREEGEN_H
10
11#include "unifiltergen.h"
12
19{
20 UniConfKey subkey;
21
22public:
23 UniSubtreeGen(IUniConfGen *gen, const UniConfKey &_subkey);
24
25 virtual bool keymap(const UniConfKey &unmapped_key, UniConfKey &mapped_key);
26 virtual bool reversekeymap(const UniConfKey &mapped_key, UniConfKey &unmapped_key);
27};
28
29
30#endif // __UNISUBTREEGEN_H
An abstract data container that backs a UniConf tree.
Definition uniconfgen.h:40
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
Definition uniconfkey.h:39
A UniConfGen that delegates all requests to an inner generator.
A UniConfGen that returns only a particular subtree of a given generator.
virtual bool reversekeymap(const UniConfKey &mapped_key, UniConfKey &unmapped_key)
A mapping function for filters that unmap a keyspace.
virtual bool keymap(const UniConfKey &unmapped_key, UniConfKey &mapped_key)
A mapping function for filters that remap one keyspace onto another.