00001 // $Id: filter_8h-source.html,v 1.2 2002/06/20 17:09:51 mkrohn5 Exp $ 00002 // 00003 // Filter class Header File 00004 // Written by: Ralf Laue <ralf.laue@gmx.de> 00005 // 00006 // Copyright (C) 2001 Ralf Laue <ralf.laue@gmx.de> 00007 // 00008 // This program is free software; you can redistribute it and/or modify 00009 // it under the terms of the GNU General Public License as published by 00010 // the Free Software Foundation; either version 1, or (at your option) 00011 // any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 00018 #ifndef __FILTER_INCLUDED 00019 #define __FILTER_INCLUDED 00020 00021 /******************************** class TFilter ********************************/ 00022 00023 00041 class TFilter 00042 { 00043 public: 00046 typedef tFilterValueType int2; 00049 TFilter(); 00054 TFilter( string& FilterDescription, tFilterValueType filterValue ); 00058 TFilter( const TFilter& otherFilter ); 00060 virtual ~TFilter(); 00067 virtual void setFilterValue( tFilterVauleType filterValue ); 00072 virtual tFilterType getFilterValue(); 00077 virtual void setFilterDescription( string& filterDescription ); 00081 virtual string& getFilterDescription() const; 00092 virtual TFilter& operator+( const TFilter& filterToAdd ) const; 00097 virtual TFilter& operator=( const TFilter& otherFilter ); 00102 virtual bool operator==( const TFilter& otherFilter ) const; 00103 protected: 00107 FilterValueType fFilterValue; 00110 string fFilterDescription; 00111 } // class TFilter 00112 00113 00114 #endif // __FILTER_INCLUDED 00115