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