Main Page Class Hierarchy Alphabetical List Compound List Examples |
#include <codec_chain.h>
Public Types | |
typedef codec_chain< C, N > | self_type |
typedef C | content_type |
typedef N | next_node_type |
enum | { count = 1 + next_node_type::count } |
Public Member Functions | |
codec_chain (const content_type &c) | |
codec_chain (const content_type &c, const next_node_type &node) | |
codec_chain (const codec_chain &node) | |
codec_chain (const null_node &) | |
const char * | name () const |
void | process (char c) |
void | flush () |
template<typename Cn> | |
const Cn & | get_c (int idx) const |
const content_type & | get_c (int idx) const |
template<typename C1> | |
const C1 & | operator[] (int idx) const |
self_type & | operator * () |
self_type & | operator= (char c) |
self_type & | operator++ () |
self_type & | operator++ (int) |
template<typename TailC> | |
push_back_node< self_type, codec_chain< TailC > >::node_type | operator| (const TailC &l) |
Public Attributes | |
content_type | m_c |
next_node_type | m_next |
std::string | m_name |
Chain of codecs. Don't use it directly use | operator instead.
// converts test string to upper case, replaces LF chars with // CRLF and encodes it using quoted-printable codec ToUpperCase tuc; Lf2CrLf l2c; QP::Encoder qp; char buf[MAXLEN]; string test("....some text here...."); code(test.begin(), test.end(), tuc | l2c | qp, buf);