cxxtools::CsvFormatter Class Reference

#include <cxxtools/csvformatter.h>

Inheritance diagram for cxxtools::CsvFormatter:
cxxtools::Formatter

Classes

struct  Title

Public Member Functions

 CsvFormatter (std::ostream &os, TextCodec< Char, char > *codec=new Utf8Codec())
 CsvFormatter (TextOStream &os)
 ~CsvFormatter ()
void selectColumn (const std::string &title)
void selectColumn (const std::string &memberName, const std::string &title)
void delimiter (String delimiter)
void quote (Char quote)
void lineEnding (const String &le)
virtual void addValueString (const std::string &name, const std::string &type, const String &value)
virtual void beginArray (const std::string &name, const std::string &type)
virtual void finishArray ()
virtual void beginObject (const std::string &name, const std::string &type)
virtual void beginMember (const std::string &name)
virtual void finishMember ()
virtual void finishObject ()
virtual void finish ()
- Public Member Functions inherited from cxxtools::Formatter
virtual ~Formatter ()
virtual void addValueStdString (const std::string &name, const std::string &type, const std::string &value)
virtual void addValueBool (const std::string &name, const std::string &type, bool value)
virtual void addValueInt (const std::string &name, const std::string &type, int_type value)
virtual void addValueUnsigned (const std::string &name, const std::string &type, unsigned_type value)
virtual void addValueFloat (const std::string &name, const std::string &type, long double value)
virtual void addNull (const std::string &name, const std::string &type)

Additional Inherited Members

- Public Types inherited from cxxtools::Formatter
typedef long int_type
typedef unsigned long unsigned_type
- Protected Member Functions inherited from cxxtools::Formatter
 Formatter ()

Constructor & Destructor Documentation

cxxtools::CsvFormatter::CsvFormatter ( std::ostream &  os,
TextCodec< Char, char > *  codec = new Utf8Codec() 
)
cxxtools::CsvFormatter::CsvFormatter ( TextOStream os)
cxxtools::CsvFormatter::~CsvFormatter ( )

Member Function Documentation

virtual void cxxtools::CsvFormatter::addValueString ( const std::string &  name,
const std::string &  type,
const String value 
)
virtual

Implements cxxtools::Formatter.

virtual void cxxtools::CsvFormatter::beginArray ( const std::string &  name,
const std::string &  type 
)
virtual

Implements cxxtools::Formatter.

virtual void cxxtools::CsvFormatter::beginMember ( const std::string &  name)
virtual

Implements cxxtools::Formatter.

virtual void cxxtools::CsvFormatter::beginObject ( const std::string &  name,
const std::string &  type 
)
virtual

Implements cxxtools::Formatter.

void cxxtools::CsvFormatter::delimiter ( String  delimiter)
inline
virtual void cxxtools::CsvFormatter::finish ( )
virtual

Implements cxxtools::Formatter.

virtual void cxxtools::CsvFormatter::finishArray ( )
virtual

Implements cxxtools::Formatter.

virtual void cxxtools::CsvFormatter::finishMember ( )
virtual

Implements cxxtools::Formatter.

virtual void cxxtools::CsvFormatter::finishObject ( )
virtual

Implements cxxtools::Formatter.

void cxxtools::CsvFormatter::lineEnding ( const String le)
inline
void cxxtools::CsvFormatter::quote ( Char  quote)
inline
void cxxtools::CsvFormatter::selectColumn ( const std::string &  title)
void cxxtools::CsvFormatter::selectColumn ( const std::string &  memberName,
const std::string &  title 
)

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