CppUnit project page CppUnit home page

stringize.h File Reference

#include <cpput/config.h>
#include <string>
#include <cpptl/stringtools.h>
#include <sstream>

Include dependency graph for stringize.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CppUT

Classes

struct  CppUT::DefaultStringizer< ValueType >
 A generic functor that can be used to convert a value into a string.

It is used as default argument by function template that allow the user to pass a specific functor to convert data to string. More...

struct  CppUT::RefStringizer< ValueType >
struct  CppUT::DerefStringizer< ValueType >
struct  CppUT::NotConvertibleToStdString
struct  CppUT::NoToStringOverload

Functions

std::string CppUT::getStdString (const char *cstr)
std::string CppUT::getStdString (const std::string &s)
std::string CppUT::getStdString (const CppTL::ConstString &s)
template<class T>
NotConvertibleToStdString CppUT::getStdString (const T &)
template<class StringType>
std::string CppUT::convertToString (const StringType &s)
template<class T>
NoToStringOverload CppUT::toString (const T &)
template<typename ValueType>
implementation_detail std::string CppUT::stringize (const ValueType &value)
template<typename ValueType>
std::string CppUT::defaultStringize (const ValueType &value)


SourceForge Logo hosts this site. Send comments to:
CppUnit Developers