2 #include "../acl_cpp_define.hpp" 5 #include "../stdlib/noncopyable.hpp" 6 #include "../stdlib/string.hpp" 8 #if !defined(ACL_MIME_DISABLE) 33 mime_node(
const char* emailFile,
const MIME_NODE* node,
34 bool enableDecode =
true,
const char* toCharset =
"gb2312",
46 return m_name.c_str();
73 const char* get_ctype_s(
void)
const;
79 const char* get_stype_s(
void)
const;
134 const char* header_value(
const char*
name)
const;
140 const std::map<string, string>& get_headers(
void)
const;
158 bool save(
pipe_manager& out,
const char* src,
int len)
const;
169 bool save(
ostream& out,
const char* src = NULL,
int len = 0)
const;
180 bool save(
const char* outFile,
const char* src = NULL,
int len = 0)
const;
191 bool save(
string& out,
const char* src,
int len)
const;
205 bool has_parent(
void)
const;
212 int parent_ctype(
void)
const;
213 const char* parent_ctype_s(
void)
const;
220 int parent_stype(
void)
const;
221 const char* parent_stype_s(
void)
const;
228 int parent_encoding(
void)
const;
235 char* parent_charset(
void)
const;
241 off_t parent_bodyBegin(
void)
const;
247 off_t parent_bodyEnd(
void)
const;
255 const char* parent_header_value(
const char*
name)
const;
265 char m_toCharset[32];
275 #endif // !defined(ACL_MIME_DISABLE) const MIME_NODE * m_pMimeNode
int get_stype(void) const
const char * get_charset(void) const
HTTP_API void const char * name
const char * get_toCharset(void) const
int get_ctype(void) const
int get_encoding(void) const
off_t get_bodyEnd(void) const
const char * get_name(void) const
off_t get_bodyBegin(void) const
std::map< string, string > * m_headers_