Formatter.h File Reference

Support formatting of strings. More...

Go to the source code of this file.

Namespaces

namespace  mockpp
 

Namespace for project "Mock Objects for C++".


Defines

#define MOCKPP_OSTREAMABLE(T)
 Outputter which reuses an existing operator<<(std::basic_ostream<char>&, T).
#define MOCKPP_OWSTREAMABLE(T)
 Outputter which implements a local (no exports of any kind) forwarder to an existing MOCKPP_NS::owstream(T).

Functions

mockpp::String mockpp::number (long n, unsigned base=10)
 Converts a long value into its string representation.
mockpp::String mockpp::number (long long n, unsigned base=10)
 Converts a longlong value into its string representation.
mockpp::String mockpp::number (unsigned long n, unsigned base=10)
 Converts an unsigned long value into its string representation.
mockpp::String mockpp::number (unsigned long long n, unsigned base=10)
 Converts an unsigned long value into its string representation.
mockpp::String mockpp::number (double n, unsigned prec=0)
 Converts an double value into its string representation.
mockpp::String mockpp::number (long double n, unsigned prec=0)
 Converts an long double value into its string representation.
String & mockpp::replaceFormatterString (String &formatter, const String &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const int &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const bool &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const unsigned int &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const unsigned long &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const signed char &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const unsigned char &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const char &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const char *repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const float &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const wchar_t &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const wchar_t *repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const long &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const mockpp::String &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const std::string &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const double &repdata)
 Replace a positional -parameter with a value.
mockpp::Stringoperator<< (mockpp::String &formatter, const long double &repdata)
 Replace a positional -parameter with a value.
template<class T >
mockpp::String mockpp::ostreamed (const T &t)
 Outputter which reuses an existing operator<<(std::basic_ostream<wchar_t>&, T).
template<class T >
mockpp::String mockpp::owstreamed (const T &t)
 Outputter which reuses an existing operator<<(std::basic_ostream<wchar_t>&, T).

Detailed Description

Support formatting of strings.

Id
Formatter.h 1491 2010-01-02 22:21:45Z ewald-arnold

Definition in file Formatter.h.


Define Documentation

#define MOCKPP_OSTREAMABLE (  ) 
Value:
MOCKPP_NS::String & \
  operator << (MOCKPP_NS::String &formatter, const T &o) \
{ \
  formatter << MOCKPP_NS::ostreamed(o); \
  return formatter; \
}

Outputter which reuses an existing operator<<(std::basic_ostream<char>&, T).

Parameters:
T data type for output

Definition at line 422 of file Formatter.h.

#define MOCKPP_OWSTREAMABLE (  ) 
Value:
MOCKPP_NS::String & \
  operator << (MOCKPP_NS::String &formatter, const T &o) \
{ \
  formatter << MOCKPP_NS::owstreamed(o); \
  return formatter; \
}

Outputter which implements a local (no exports of any kind) forwarder to an existing MOCKPP_NS::owstream(T).

Parameters:
T data type for output

Definition at line 457 of file Formatter.h.

 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:48:57 2010 for mockpp by  doxygen 1.6.1