C/C++ Reference
FileZipReader.h
00001 /*
00002  *     ____             _________                __                _     
00003  *    / __ \___  ____ _/ /_  __(_)___ ___  ___  / /   ____  ____ _(_)____
00004  *   / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ /   / __ \/ __ `/ / ___/
00005  *  / _, _/  __/ /_/ / / / / / / / / / / /  __/ /___/ /_/ / /_/ / / /__  
00006  * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/  
00007  *                                                       /____/          
00008  *
00009  *                  Barracuda Embedded Web-Server
00010  *
00011  ****************************************************************************
00012  *                            HEADER
00013  *
00014  *   $Id: FileZipReader.h 1926 2009-12-23 08:27:06Z wini $
00015  *
00016  *   COPYRIGHT:  Real Time Logic, 2003
00017  *               http://www.realtimelogic.com
00018  *
00019  *   The copyright to the program herein is the property of
00020  *   Real Time Logic. The program may be used or copied only
00021  *   with the written permission from Real Time Logic or
00022  *   in accordance with the terms and conditions stipulated in
00023  *   the agreement under which the program has been supplied.
00024  ****************************************************************************
00025  *
00026  *
00027  */
00028 #ifndef __FileZipReader_h
00029 #define __FileZipReader_h
00030 
00031 #include <ZipFileIterator.h>
00032 #include <BaFile.h>
00033 
00048 typedef struct FileZipReader
00049 #ifdef __cplusplus
00050 : public ZipReader
00051 {
00057    FileZipReader(const char* pathName);
00058       
00061    ~FileZipReader();
00062 
00063    private:
00064 #else
00065 {
00066    ZipReader reader;
00067 #endif
00068       U32 currentOffset;
00069       ResIntfPtr fp;
00070 } FileZipReader;
00071 
00072 #ifdef __cplusplus
00073 extern "C" {
00074 #endif
00075 void FileZipReader_constructor(FileZipReader* o,
00076                                      const char* pathName);
00077 void FileZipReader_destructor(FileZipReader* o);
00078 #ifdef __cplusplus
00079 }
00080 inline FileZipReader::FileZipReader(const char* pathName) {
00081    FileZipReader_constructor(this, pathName); }
00082 inline FileZipReader::~FileZipReader() {
00083    FileZipReader_destructor(this); }
00084 #endif
00085 
00086 
00087 #endif