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

exaltcodec.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     exaltcodec.h  -  Definition of ExaltCodec class
00003                              -------------------
00004     begin                : June 21 2002
00005     copyright            : (C) 2003 by Vojtìch Toman
00006     email                : vtoman@lit.cz
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00025 #ifdef __GNUG__
00026 # pragma interface
00027 #endif
00028 
00029 
00030 #ifndef EXALTCODEC_H
00031 #define EXALTCODEC_H
00032 
00033 
00034 #include "defs.h"
00035 #include "filedevice.h"
00036 #include "iodevice.h"
00037 #include "saxemitter.h"
00038 #include "saxreceptor.h"
00039 #include "outputsaxreceptor.h"
00040 #include "textcodec.h"
00041 #include "xmlcodec.h"
00042 #include "xmlcodecbase.h"
00043 
00044 
00045 #include <ctime>
00046 
00047 
00048 
00054 class ExaltCodec : public XmlCodecBase
00055 {
00056 public:
00058   ExaltCodec(void);
00059 
00061   virtual ~ExaltCodec(void);
00062 
00064   virtual bool encode(const char *inFileName, const char *outFileName);
00065 
00067   virtual bool encode(IODevice *inDevice, IODevice *outDevice);
00068 
00070   virtual void initializePushCoder(IODevice *outDevice);
00071 
00073   virtual void initializePushCoder(const char *outFileName);
00074 
00076   virtual bool encodePush(const char *data, int length, bool isFinal = false);
00077 
00078 
00080   virtual bool decode(const char *inFileName, const char *outFileName);
00081 
00083   virtual bool decode(IODevice *inDevice, IODevice *outDevice);
00084 
00086   virtual bool decode(IODevice *inDevice, SAXReceptor *receptor, void *userData = 0);
00087 
00089   virtual bool decode(const char *inFileName, SAXReceptor *receptor, void *userData = 0);
00090 
00091 protected:
00093   XmlCodecBase *xmlCodec;
00094 }; //ExaltCodec
00095 
00096 
00097 #endif //EXALTCODEC_H

Generated on Wed Feb 5 10:43:01 2003 for Exalt by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002