Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

encfiltmgr.h

00001 /******************************************************************************
00002  *  swencodingmgr.h   - definition of class SWEncodingMgr, subclass of
00003  *                        used to transcode all module text to a requested
00004  *                        markup.
00005  *
00006  * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
00007  *      CrossWire Bible Society
00008  *      P. O. Box 2528
00009  *      Tempe, AZ  85280-2528
00010  *
00011  * This program is free software; you can redistribute it and/or modify it
00012  * under the terms of the GNU General Public License as published by the
00013  * Free Software Foundation version 2.
00014  *
00015  * This program is distributed in the hope that it will be useful, but
00016  * WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * General Public License for more details.
00019  *
00020  */
00021 
00022 #ifndef ENCFILTERMGR_H
00023 #define ENCFILTERMGR_H
00024 
00025 #include <swfiltermgr.h>
00026 
00027 SWORD_NAMESPACE_START
00028 
00034 class SWDLLEXPORT EncodingFilterMgr : public SWFilterMgr {
00035 
00036 protected:
00037         SWFilter *latin1utf8;
00038         SWFilter *scsuutf8;
00039         SWFilter *targetenc;
00040 
00041 
00042         /*
00043          * current encoding value
00044          */        
00045         char encoding;
00046 
00047 public:
00048 
00049 
00054         EncodingFilterMgr (char encoding = ENC_UTF8);
00055 
00059         ~EncodingFilterMgr();
00060 
00066         char Encoding(char enc);
00067 
00073         virtual void AddRawFilters(SWModule *module, ConfigEntMap &section);
00074 
00080         virtual void AddEncodingFilters(SWModule *module, ConfigEntMap &section);
00081 };
00082 
00083 SWORD_NAMESPACE_END
00084 #endif

Generated on Fri Feb 28 22:01:38 2003 for The Sword Project by doxygen1.3-rc3