DCL
4.0
Loading...
Searching...
No Matches
HttpStream.h
Go to the documentation of this file.
1
#ifndef __DCL_HTTP_STREAM_H__
2
#define __DCL_HTTP_STREAM_H__ 20060104
3
4
#ifndef __DCL_INPUT_STREAM_H__
5
#include <
dcl/InputStream.h
>
6
#endif
7
#ifndef __DCL_OUTPUT_STREAM_H__
8
#include <
dcl/OutputStream.h
>
9
#endif
10
11
__DCL_BEGIN_NAMESPACE
12
13
class
HttpServletContext
;
14
15
class
DCLCAPI
HttpInputStream
:
public
InputStream
16
{
17
DECLARE_CLASSINFO
(
HttpInputStream
)
18
public
:
19
HttpInputStream
(
HttpServletContext
* _ctx);
20
21
virtual
size_t
read(
void
* _buf,
size_t
_n)
22
__DCL_THROWS1
(
IOException
*);
23
24
protected
:
25
HttpServletContext
*
__ctx
;
26
};
27
28
class
DCLCAPI
HttpOutputStream
:
public
OutputStream
29
{
30
DECLARE_CLASSINFO
(
HttpOutputStream
)
31
public
:
32
HttpOutputStream
(
HttpServletContext
* _ctx);
33
34
virtual
OutputStream
& write(
const
void
* _buf,
size_t
_n)
35
__DCL_THROWS1
(
IOException
*);
36
37
private
:
38
HttpServletContext
* __ctx;
39
};
40
41
__DCL_END_NAMESPACE
42
43
#endif
// __DCL_HTTP_STREAM_H__
44
DCLCAPI
#define DCLCAPI
Definition
Config.h:100
__DCL_THROWS1
#define __DCL_THROWS1(e)
Definition
Config.h:167
InputStream.h
DECLARE_CLASSINFO
#define DECLARE_CLASSINFO(class_name)
Definition
Object.h:210
OutputStream.h
HttpInputStream
Definition
HttpStream.h:16
HttpInputStream::__ctx
HttpServletContext * __ctx
Definition
HttpStream.h:25
HttpOutputStream
Definition
HttpStream.h:29
HttpServletContext
Definition
HttpServlet.h:34
IOException
Definition
Exception.h:93
InputStream
Definition
InputStream.h:23
OutputStream
Definition
OutputStream.h:31
include
dcl
HttpStream.h
Generated by
1.14.0