arguments.h File Reference

Go to the source code of this file.

Namespaces

namespace  l4snd

Defines

#define LOG4SENDPP_OSTREAMABLE(T)
 Outputter which reuses an existing operator<<(LOG4SENDPP_STD_NS::basic_ostream<char>&, T).

Functions

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


Detailed Description

Support argument formatting
Id

Definition in file arguments.h.


Define Documentation

#define LOG4SENDPP_OSTREAMABLE (  ) 

Value:

LOG4SENDPP_STD_NS::string & \
  operator << (LOG4SENDPP_STD_NS::string &formatter, const T &o) \
{ \
  formatter << LOG4SENDPP_NS::ostreamed(o); \
  return formatter; \
}
Outputter which reuses an existing operator<<(LOG4SENDPP_STD_NS::basic_ostream<char>&, T).

Parameters:
T data type for output

Definition at line 364 of file arguments.h.


Function Documentation

std ::string& operator<< ( std::string &  formatter,
const double &  repdata 
)

Replace a positional -parameter with a value.

Replaces the lowest -parameter with the string representation of the data. L"hello 1" << L"world" gives L"hello world"

Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string Replace a positional -parameter with a value. Replaces the lowest -parameter with the string representation of the data. "hello %1" << 1.234 gives "hello 1.234"
Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string

Definition at line 389 of file arguments.cpp.

References l4snd::number().

std ::string& operator<< ( std::string &  formatter,
const std::string &  repdata 
)

Replace a positional -parameter with a value.

Replaces the lowest -parameter with the string representation of the data. "hello %1" << "world" gives "hello world"

Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string

Definition at line 415 of file arguments.cpp.

References l4snd::replaceFormatterString().

std ::string& operator<< ( std::string &  formatter,
const long &  repdata 
)

Replace a positional -parameter with a value.

Replaces the lowest -parameter with the string representation of the data. "hello %1" << 9 gives "hello 9"

Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string

Definition at line 382 of file arguments.cpp.

References l4snd::number().

std ::string& operator<< ( std::string &  formatter,
const float &  repdata 
)

Replace a positional -parameter with a value.

Replaces the lowest -parameter with the string representation of the data. "hello %1" << 1.234 gives "hello 1.234"

Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string

Definition at line 357 of file arguments.cpp.

References l4snd::number().

std ::string& operator<< ( std::string &  formatter,
const char *  repdata 
)

Replace a positional -parameter with a value.

Replaces the lowest -parameter with the string representation of the data. "hello %1" << 'A' gives "hello A"

Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string

Definition at line 350 of file arguments.cpp.

std ::string& operator<< ( std::string &  formatter,
const char &  repdata 
)

Replace a positional -parameter with a value.

Replaces the lowest -parameter with the string representation of the data. "hello %1" << 'A' gives "hello A"

Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string

Definition at line 336 of file arguments.cpp.

References l4snd::charToReadable().

std ::string& operator<< ( std::string &  formatter,
const unsigned char &  repdata 
)

Replace a positional -parameter with a value.

Replaces the lowest -parameter with the string representation of the data. "hello %1" << 'A' gives "hello A"

Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string

Definition at line 343 of file arguments.cpp.

References l4snd::charToReadable().

std ::string& operator<< ( std::string &  formatter,
const signed char &  repdata 
)

Replace a positional -parameter with a value.

Replaces the lowest -parameter with the string representation of the data. "hello %1" << 'A' gives "hello A"

Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string

Definition at line 329 of file arguments.cpp.

References l4snd::charToReadable().

std ::string& operator<< ( std::string &  formatter,
const unsigned long &  repdata 
)

Replace a positional -parameter with a value.

Replaces the lowest -parameter with the string representation of the data. "hello %1" << 9 gives "hello 9"

Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string

Definition at line 322 of file arguments.cpp.

References l4snd::number().

std ::string& operator<< ( std::string &  formatter,
const unsigned int &  repdata 
)

Replace a positional -parameter with a value.

Replaces the lowest -parameter with the string representation of the data. "hello %1" << 9 gives "hello 9"

Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string

Definition at line 315 of file arguments.cpp.

References l4snd::number().

std ::string& operator<< ( std::string &  formatter,
const bool &  repdata 
)

Replace a positional -parameter with a value.

Replaces the lowest -parameter with the string representation of the data. "hello %1" << true gives "hello 1"

Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string

Definition at line 307 of file arguments.cpp.

std ::string& operator<< ( std::string &  formatter,
const int &  repdata 
)

Replace a positional -parameter with a value.

Replaces the lowest -parameter with the string representation of the data. "hello %1" << 9 gives "hello 9"

Parameters:
formatter target string with position parameter
repdata value to replace
Returns:
the resulting string

Definition at line 300 of file arguments.cpp.

References l4snd::number().


Generated on Sat Nov 24 14:41:22 2007 for log4sendpp by  doxygen 1.5.3