#include <ioutils.h>
Public Member Functions | |
const char * | operator() (const unsigned short int &c) const |
const char * | operator() (const short int &c) const |
const char * | operator() (const unsigned long &c) const |
const char * | operator() (const long &c) const |
const char * | operator() (const unsigned int &c) const |
const char * | operator() (bool c) const |
const char * | operator() (const int &c) const |
const char * | operator() (const float &c) const |
const char * | operator() (const double &c) const |
const char * | operator() (const char c[], int n) const |
const char * | operator() (const char *c) const |
const char * | operator() (const std::string &c) const |
template<typename T > | |
const char * | operator() (const std::vector< T > &v) const |
toa () | |
~toa () | |
Private Member Functions | |
void | operator= (const toa &) |
std::ostringstream & | oss () const |
toa (const toa &) | |
Static Private Member Functions | |
static std::string & | localS () |
Private Attributes | |
std::ostringstream | oss_ |
a simple class to write ints, floats and doubles in chars.
Usage as in: string mystring; ... ; mystring += toa()(4.);
toa::~toa | ( | ) |
Definition at line 32 of file ioutils.cc.
|
staticprivate |
Definition at line 36 of file ioutils.cc.
Referenced by operator()().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
const char * toa::operator() | ( | bool | c | ) | const |
const char * toa::operator() | ( | const int & | c | ) | const |
|
inline |
const char * toa::operator() | ( | const double & | c | ) | const |
const char * toa::operator() | ( | const char | c[], |
int | n | ||
) | const |
|
inline |
|
inline |
|
inline |
|
inlineprivate |