WvStreams
unisubtreegen.h
00001 /* -*- Mode: C++ -*-
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  * 
00005  * A UniConfGen for returning only a particular subtree of a given generator.
00006  */
00007 
00008 #ifndef __UNISUBTREEGEN_H
00009 #define __UNISUBTREEGEN_H
00010 
00011 #include "unifiltergen.h"
00012 
00018 class UniSubtreeGen : public UniFilterGen
00019 {
00020     UniConfKey subkey;
00021     
00022 public:
00023     UniSubtreeGen(IUniConfGen *gen, const UniConfKey &_subkey);
00024     
00025     virtual bool keymap(const UniConfKey &unmapped_key, UniConfKey &mapped_key);
00026     virtual bool reversekeymap(const UniConfKey &mapped_key, UniConfKey &unmapped_key);
00027 };
00028 
00029 
00030 #endif // __UNISUBTREEGEN_H