fastdo
0.6.8
首页
命名空间
类
文件
文件列表
文件成员
webx_OutputMgr.hpp
浏览该文件的文档.
1
#pragma once
2
3
#include "
http.hpp
"
4
5
namespace
eienwebx
6
{
7
12
class
EIENWEBX_DLL
OutputMgr
13
{
14
public
:
16
OutputMgr
();
17
19
virtual
~
OutputMgr
();
20
25
void
setLocalEncoding(
winux::String
const
& local );
26
30
void
setTargetEncoding(
winux::String
const
& target );
31
33
winux::String
getLocalEncoding()
const
;
34
36
winux::String
getTargetEncoding()
const
;
37
39
winux::String
convFrom(
winux::String
const
& str )
const
;
40
42
winux::String
convTo(
winux::String
const
& str )
const
;
43
45
http::Header
& header();
46
48
http::Header
const
& header()
const
;
49
50
public
:
52
void
echo(
winux::String
const
& str );
53
55
void
write(
void
const
* data,
size_t
size );
56
58
void
printf(
char
const
* format, va_list va );
59
60
std::ostream & out();
61
63
size_t
getOutputSize()
const
;
64
68
size_t
getConvertedOutputSize();
69
73
virtual
void
commit();
74
76
virtual
void
resumeStd();
77
79
virtual
void
redirectToSpec();
80
81
protected
:
82
86
bool
_isNeedEncodingConvert()
const
;
87
93
int
_tryEncodingConvert();
94
96
virtual
void
_actualOutput(
void
const
* data,
size_t
size );
97
99
virtual
void
_actualError(
void
const
* data,
size_t
size );
100
101
winux::MembersWrapper<struct OutputMgr_Data>
_self
;
102
103
private
:
104
105
friend
class
Response
;
106
DISABLE_OBJECT_COPY
(
OutputMgr
)
107
};
108
109
110
}
// namespace eienwebx
winux::MembersWrapper< struct OutputMgr_Data >
http::Header
代表HTTP头部
Definition:
http_misc.hpp:10
EIENWEBX_DLL
#define EIENWEBX_DLL
Definition:
eienwebx_base.hpp:28
winux::String
XString< tchar > String
Definition:
utilities.hpp:216
eienwebx
Web功能的相关封装
Definition:
eienwebx_base.hpp:45
eienwebx::OutputMgr::_self
winux::MembersWrapper< struct OutputMgr_Data > _self
Definition:
webx_OutputMgr.hpp:101
DISABLE_OBJECT_COPY
#define DISABLE_OBJECT_COPY(clsname)
Definition:
utilities.hpp:81
http.hpp
eienwebx::OutputMgr
输出管理器
Definition:
webx_OutputMgr.hpp:12
eienwebx::Response
代表一个客户响应
Definition:
webx_Response.hpp:12
build
windows
include
webx_OutputMgr.hpp
生成于 2023年 六月 18日 星期日 10:25:58 , 为 fastdo使用
1.8.11