Barracuda Application Server C/C++ Reference
NO
IoIntfCspReader.h
1/*
2 * ____ _________ __ _
3 * / __ \___ ____ _/ /_ __(_)___ ___ ___ / / ____ ____ _(_)____
4 * / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ / / __ \/ __ `/ / ___/
5 * / _, _/ __/ /_/ / / / / / / / / / / / __/ /___/ /_/ / /_/ / / /__
6 * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/
7 * /____/
8 *
9 * Barracuda Embedded Web-Server
10 *
11 ****************************************************************************
12 * HEADER
13 *
14 * $Id: IoIntfCspReader.h 4915 2021-12-01 18:26:55Z wini $
15 *
16 * COPYRIGHT: Real Time Logic LLC, 2008
17 *
18 * This software is copyrighted by and is the sole property of Real
19 * Time Logic LLC. All rights, title, ownership, or other interests in
20 * the software remain the property of Real Time Logic LLC. This
21 * software may only be used in accordance with the terms and
22 * conditions stipulated in the corresponding license agreement under
23 * which the software has been supplied. Any unauthorized use,
24 * duplication, transmission, distribution, or disclosure of this
25 * software is expressly forbidden.
26 *
27 * This Copyright notice may not be removed or modified without prior
28 * written consent of Real Time Logic LLC.
29 *
30 * Real Time Logic LLC. reserves the right to modify this software
31 * without notice.
32 *
33 * http://www.realtimelogic.com
34 ****************************************************************************
35 *
36 *
37 */
38#ifndef __IoIntfCspReader_h
39#define __IoIntfCspReader_h
40
41#include <CspRunTm.h>
42#include <IoIntf.h>
43
48typedef struct IoIntfCspReader
49#ifdef __cplusplus
50: public CspReader
51{
53
58 IoIntfCspReader(IoIntf* io, const char* pathName);
59
63
66 int close();
67
68 private:
69#else
70{
71 CspReader reader;
72#endif
73 U32 currentOffset;
74 IoIntf_SeekAndRead seekAndReadFp;
75 ResIntfPtr fp;
77
78#ifdef __cplusplus
79extern "C" {
80#endif
81BA_API void IoIntfCspReader_constructor(IoIntfCspReader* o,
82 IoIntf* io,
83 const char* pathName);
84BA_API int IoIntfCspReader_close(IoIntfCspReader* o);
85#define IoIntfCspReader_destructor(o) IoIntfCspReader_close(o);
86#ifdef __cplusplus
87}
88inline IoIntfCspReader::IoIntfCspReader(IoIntf* io, const char* pathName) {
89 IoIntfCspReader_constructor(this, io, pathName); }
91 IoIntfCspReader_destructor(this); }
93 return IoIntfCspReader_close(this); }
94#endif
95
96
97#endif
Abstract interface class for reading the "dat" file generated byHttpLink.
Definition: CspRunTm.h:119
The IoIntfCspReader, which implements the abstract CspReader interface, makes it possible to open a "...
Definition: IoIntfCspReader.h:51
int close()
Close the file connection.
Definition: IoIntfCspReader.h:92
~IoIntfCspReader()
The destructor closes the file connection.
Definition: IoIntfCspReader.h:90
The IoIntf class specifies an abstract file API, implementations include ZipIo, DiskIo,...
Definition: IoIntf.h:377