Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages

# aka2::formatter_base Class Reference

Base class of formatter. More...

`#include <formatter_base.h>`

Inheritance diagram for aka2::formatter_base:

[legend]
List of all members.

## Public Methods
virtual void | set_encoding (const std::string &encoding)=0
void | prepare (std::ostream &ostm)
void | finish ()

## Detailed Description

Base class of formatter.

This class implements text-formatter functionality for XML serializer.
Any derived formatter classes should implement some pure-virtual members to achive encoding translation.

Definition at line 28 of file formatter_base.h.

## Member Function Documentation

void aka2::formatter_base::finish | ( |  | ) |

| Finish serialization.

void aka2::formatter_base::prepare | ( | std::ostream & | ostm | ) |

  | Set std::ostream to output text. Parameters:
  ostm | std::ostream to output text.

virtual void aka2::formatter_base::set_encoding | ( | const std::string & | encoding | ) | `[pure virtual]`

  | Set encoding name. Overriding method should setup encoding translator. Parameters:
  encoding | encoding name.

The documentation for this class was generated from the following file:

- formatter_base.h