1 #ifndef MOTOROUTPUT_ICONV_H
2 #define MOTOROUTPUT_ICONV_H
4 #include "motoroutput.h"
6 #include "util_string.h"
8 class MotorOutputIConv: public MotorOutput {
13 MotorOutputIConv (const char* _code): cd (_code, kCODE_UTF8) {
16 virtual ~MotorOutputIConv () {};
18 virtual MotorOutput* out_toText (const ustring& str);
19 virtual MotorOutput* out_templateText (const ustring& str);
20 virtual MotorOutput* flush ();
21 virtual const ustring charset () {
26 class MotorOutputIConvOStream: public MotorOutputIConv {
28 MotorOutputIConvOStream (const char* v): MotorOutputIConv (v) {};
29 virtual ~MotorOutputIConvOStream () {};
32 virtual MotorOutput* out (const ustring::value_type* s, size_t len);
34 virtual bool isResponse () {
39 class MotorOutputIConvString: public MotorOutputIConv {
43 MotorOutputIConvString (const char* v): MotorOutputIConv (v) {};
44 virtual ~MotorOutputIConvString () {};
47 virtual MotorOutput* out (const ustring::value_type* s, size_t len);
49 virtual bool isResponse () {
54 #endif /* MOTOROUTPUT_ICONV_H */