filecomp.h

Go to the documentation of this file.
00001 /* File compression interfaces.
00002  *
00003  * File compression module (c) 2005 PegSoft
00004  * Contact us at pegsoft@pegsoft.net
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program (see the file COPYING); if not, write to the
00018  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00024 #ifndef FILECOMP_FILECOMP_H
00025 #define FILECOMP_FILECOMP_H
00026 
00027 /*************************************************************************/
00028 
00029 #include <modules/interface.h>
00030 
00031 /*************************************************************************/
00032 
00034 namespace filecomp 
00035 {
00036 
00037 /*************************************************************************/
00038 
00040 
00050 class Compressor : public modules::ErrorInterface
00051 {
00052     public:
00054         static modules::PSIID const IID = 0x425f77ee;
00055         
00057         virtual ~Compressor() { }
00058         
00060 
00077         virtual bool compress(char const *path, int level) = 0;
00078         
00080 
00085         virtual char const *extension() const = 0;
00086 };
00087 
00088 /*************************************************************************/
00089 
00090 } /* namespace filecomp */
00091 
00092 /*************************************************************************/
00093 
00094 #endif /* FILECOMP_FILECOMP_H */

Generated on Fri Apr 18 22:03:27 2008 for Epona API by  doxygen 1.5.3