C/C++ Reference
IoIntfCspReader.h
00001 /*
00002  *     ____             _________                __                _     
00003  *    / __ \___  ____ _/ /_  __(_)___ ___  ___  / /   ____  ____ _(_)____
00004  *   / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ /   / __ \/ __ `/ / ___/
00005  *  / _, _/  __/ /_/ / / / / / / / / / / /  __/ /___/ /_/ / /_/ / / /__  
00006  * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/  
00007  *                                                       /____/          
00008  *
00009  *                  Barracuda Embedded Web-Server
00010  *
00011  ****************************************************************************
00012  *                            HEADER
00013  *
00014  *   $Id: IoIntfCspReader.h 2648 2012-04-26 20:27:21Z wini $
00015  *
00016  *   COPYRIGHT:  Real Time Logic LLC, 2008
00017  *
00018  *   This software is copyrighted by and is the sole property of Real
00019  *   Time Logic LLC.  All rights, title, ownership, or other interests in
00020  *   the software remain the property of Real Time Logic LLC.  This
00021  *   software may only be used in accordance with the terms and
00022  *   conditions stipulated in the corresponding license agreement under
00023  *   which the software has been supplied.  Any unauthorized use,
00024  *   duplication, transmission, distribution, or disclosure of this
00025  *   software is expressly forbidden.
00026  *                                                                        
00027  *   This Copyright notice may not be removed or modified without prior
00028  *   written consent of Real Time Logic LLC.
00029  *                                                                         
00030  *   Real Time Logic LLC. reserves the right to modify this software
00031  *   without notice.
00032  *
00033  *               http://www.realtimelogic.com
00034  ****************************************************************************
00035  *
00036  *
00037  */
00038 #ifndef __IoIntfCspReader_h
00039 #define __IoIntfCspReader_h
00040 
00041 #include <CspRunTm.h>
00042 #include <IoIntf.h>
00043 
00048 typedef struct IoIntfCspReader
00049 #ifdef __cplusplus
00050 : public CspReader
00051 {
00052       IoIntfCspReader() {}
00053 
00058    IoIntfCspReader(IoIntf* io, const char* pathName);
00059       
00062    ~IoIntfCspReader();
00063 
00066     int close();
00067 
00068    private:
00069 #else
00070 {
00071    CspReader reader;
00072 #endif
00073       U32 currentOffset;
00074       IoIntf_SeekAndRead seekAndReadFp;
00075       ResIntfPtr fp;
00076 } IoIntfCspReader;
00077 
00078 #ifdef __cplusplus
00079 extern "C" {
00080 #endif
00081 BA_API void IoIntfCspReader_constructor(IoIntfCspReader* o,
00082                                         IoIntf* io,
00083                                         const char* pathName);
00084 BA_API int IoIntfCspReader_close(IoIntfCspReader* o);
00085 #define IoIntfCspReader_destructor(o) IoIntfCspReader_close(o);
00086 #ifdef __cplusplus
00087 }
00088 inline IoIntfCspReader::IoIntfCspReader(IoIntf* io, const char* pathName) {
00089    IoIntfCspReader_constructor(this, io, pathName); }
00090 inline IoIntfCspReader::~IoIntfCspReader() {
00091    IoIntfCspReader_destructor(this); }
00092 inline int IoIntfCspReader::close() {
00093    return IoIntfCspReader_close(this); }
00094 #endif
00095 
00096 
00097 #endif