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 
22 public:
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
UniSubtreeGen::keymap
virtual bool keymap(const UniConfKey &unmapped_key, UniConfKey &mapped_key)
A mapping function for filters that remap one keyspace onto another.
Definition: unisubtreegen.cc:37
UniSubtreeGen::reversekeymap
virtual bool reversekeymap(const UniConfKey &mapped_key, UniConfKey &unmapped_key)
A mapping function for filters that unmap a keyspace.
Definition: unisubtreegen.cc:46
IUniConfGen
An abstract data container that backs a UniConf tree.
Definition: uniconfgen.h:39
UniConfKey
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
Definition: uniconfkey.h:38
UniSubtreeGen
A UniConfGen that returns only a particular subtree of a given generator.
Definition: unisubtreegen.h:18
UniFilterGen
A UniConfGen that delegates all requests to an inner generator.
Definition: unifiltergen.h:17