00001 00004 /* ----START-LICENCE---- 00005 * Copyright 1999,2000,2001 BrightStation PLC 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU General Public License as 00009 * published by the Free Software Foundation; either version 2 of the 00010 * License, or (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00020 * USA 00021 * -----END-LICENCE----- 00022 */ 00023 00024 #ifndef OM_HGUARD_OMEXPANDDECIDER_H 00025 #define OM_HGUARD_OMEXPANDDECIDER_H 00026 00027 #include "om/omenquire.h" 00028 #include <set> 00029 00033 class OmExpandDeciderFilterTerms : public OmExpandDecider { 00034 public: 00038 OmExpandDeciderFilterTerms(OmTermIterator terms, 00039 OmTermIterator termsend); 00040 00041 virtual int operator()(const om_termname &tname) const; 00042 private: 00043 std::set<om_termname> tset; 00044 }; 00045 00049 class OmExpandDeciderAnd : public OmExpandDecider { 00050 public: 00055 OmExpandDeciderAnd(const OmExpandDecider *left_, 00056 const OmExpandDecider *right_); 00057 00058 virtual int operator()(const om_termname &tname) const; 00059 00060 private: 00061 const OmExpandDecider *left; 00062 const OmExpandDecider *right; 00063 }; 00064 00065 #endif /* OM_HGUARD_OMEXPANDDECIDER_H */ 00066