formatter Class Reference

#include <formatter.hpp>

List of all members.

Public Member Functions

template<typename T>
formatteroperator<< (const T &o)
const std::string str ()
const char * c_str ()
 operator std::string ()

Private Attributes

std::ostringstream stream_


Detailed Description

Definition at line 18 of file formatter.hpp.


Member Function Documentation

template<typename T>
formatter& formatter::operator<< ( const T &  o  )  [inline]

Definition at line 22 of file formatter.hpp.

References stream_.

const std::string formatter::str (  )  [inline]

Definition at line 27 of file formatter.hpp.

References stream_.

Referenced by c_str().

const char* formatter::c_str (  )  [inline]

Definition at line 31 of file formatter.hpp.

References str().

formatter::operator std::string (  )  [inline]

Definition at line 35 of file formatter.hpp.

References stream_.


Member Data Documentation

std::ostringstream formatter::stream_ [private]

Definition at line 39 of file formatter.hpp.

Referenced by operator std::string(), operator<<(), and str().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs