CEMdFOutput

Overview

The CEMdFOutput class is an abstraction of three things:

  • A default encoding (e.g., ISO-8859-1),

  • A pointer to a std::ostream descendant to use when outputting, and

  • An output kind, telling Emdros whether to use console output or XML output.

C++ interface


#include <emdros/emdf_output.h>

typedef enum {
  kCSASCII,
  kCSISO_8859_1,
  kCSISO_8859_8,
  kCSUTF8
} eCharsets;

typedef enum {
  kOKXML,
  kOKConsole
} eOutputKind;

class CEMdFOutput {
public:
  CEMdFOutput(eCharsets charset,       // Default encoding
              std::ostream *pStream,   // Output stream
              eOutputKind output_kind, // XML or Console?
              int indent_chars = 3     // No. of indent-spaces for XML
              );
  ~CEMdFOutput();
  eOutputKind get_output_kind(void) const { return m_output_kind; }
};


Previous:CEmdrosEnv
Up:Part II: APIs
Next:EMdF database