diff options
Diffstat (limited to 'include/swfiltermgr.h')
-rw-r--r-- | include/swfiltermgr.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/include/swfiltermgr.h b/include/swfiltermgr.h new file mode 100644 index 0000000..6de765b --- /dev/null +++ b/include/swfiltermgr.h @@ -0,0 +1,82 @@ +/****************************************************************************** + * swfiltermgr.h - definition of class SWFilterMgr used as an interface to + * manage filters on a module + * + * $Id: swfiltermgr.h,v 1.1 2001/11/30 21:05:41 scribe Exp $ + * + * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) + * CrossWire Bible Society + * P. O. Box 2528 + * Tempe, AZ 85280-2528 + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation version 2. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + */ + +#ifndef SWFILTERMGR_H +#define SWFILTERMGR_H + +#include <sys/types.h> +#include <swmodule.h> +#include <swconfig.h> +#include <swlog.h> + +#include <defs.h> + +class SWMgr; + + +class SWDLLEXPORT SWFilterMgr { + +private: + SWMgr *parentMgr; + +public: + SWFilterMgr (); + virtual ~SWFilterMgr (); + + virtual void setParentMgr(SWMgr *parentMgr); + virtual SWMgr *getParentMgr(); + + virtual void AddGlobalOptions (SWModule * module, ConfigEntMap & section, + ConfigEntMap::iterator start, + ConfigEntMap::iterator end); + virtual void AddLocalOptions (SWModule * module, ConfigEntMap & section, + ConfigEntMap::iterator start, + ConfigEntMap::iterator end); + + /** + * Adds the encoding filters which are defined in "section" to the SWModule object "module". + * @param module To this module the encoding filter(s) are added + * @param section We use this section to get a list of filters we should apply to the module + */ + virtual void AddEncodingFilters (SWModule * module, ConfigEntMap & section); + /** + * Adds the render filters which are defined in "section" to the SWModule object "module". + * @param module To this module the render filter(s) are added + * @param section We use this section to get a list of filters we should apply to the module + */ + virtual void AddRenderFilters (SWModule * module, ConfigEntMap & section); + /** + * Adds the strip filters which are defined in "section" to the SWModule object "module". + * @param module To this module the strip filter(s) are added + * @param section We use this section to get a list of filters we should apply to the module + */ + virtual void AddStripFilters (SWModule * module, ConfigEntMap & section); + /** + * Adds the raw filters which are defined in "section" to the SWModule object "module". + * @param module To this module the raw filter(s) are added + * @param section We use this section to get a list of filters we should apply to the module + */ + virtual void AddRawFilters (SWModule * module, ConfigEntMap & section); + +}; + +#endif |