1
/******************************************************************************
2
* swencodingmgr.h - definition of class SWEncodingMgr, subclass of
3
* used to transcode all module text to a requested
6
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
7
* CrossWire Bible Society
11
* This program is free software; you can redistribute it and/or modify it
12
* under the terms of the GNU General Public License as published by the
13
* Free Software Foundation version 2.
15
* This program is distributed in the hope that it will be useful, but
16
* WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
* General Public License for more details.
22
#ifndef ENCFILTERMGR_H
23
#define ENCFILTERMGR_H
25
#include <swfiltermgr.h>
31
/** This class is like a normal SWMgr,
32
* but you can additonally specify which encoding
36
class SWDLLEXPORT EncodingFilterMgr : public SWFilterMgr {
44
* current encoding value
51
/** Constructor of SWEncodingMgr.
53
* @param encoding The desired encoding.
55
EncodingFilterMgr (char encoding = ENC_UTF8);
58
* The destructor of SWEncodingMgr.
62
/** Markup sets/gets the encoding after initialization
64
* @param enc The new encoding or ENC_UNKNOWN if you just want to get the current markup.
65
* @return The current (possibly changed) encoding format.
67
char Encoding(char enc);
70
* Adds the raw filters which are defined in "section" to the SWModule object "module".
71
* @param module To this module the raw filter(s) are added
72
* @param section We use this section to get a list of filters we should apply to the module
74
virtual void AddRawFilters(SWModule *module, ConfigEntMap §ion);
77
* Adds the encoding filters which are defined in "section" to the SWModule object "module".
78
* @param module To this module the encoding filter(s) are added
79
* @param section We use this section to get a list of filters we should apply to the module
81
virtual void AddEncodingFilters(SWModule *module, ConfigEntMap §ion);