blocxx
|
#include <Format.hpp>
Public Member Functions | |
operator String () const | |
String | toString () const |
const char * | c_str () const |
template<typename A > | |
Format (const char *ca, const A &a) | |
template<typename A , typename B > | |
Format (const char *ca, const A &a, const B &b) | |
template<typename A , typename B , typename C > | |
Format (const char *ca, const A &a, const B &b, const C &c) | |
template<typename A , typename B , typename C , typename D > | |
Format (const char *ca, const A &a, const B &b, const C &c, const D &d) | |
template<typename A , typename B , typename C , typename D , typename E > | |
Format (const char *ca, const A &a, const B &b, const C &c, const D &d, const E &e) | |
template<typename A , typename B , typename C , typename D , typename E , typename F > | |
Format (const char *ca, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f) | |
template<typename A , typename B , typename C , typename D , typename E , typename F , typename G > | |
Format (const char *ca, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g) | |
template<typename A , typename B , typename C , typename D , typename E , typename F , typename G , typename H > | |
Format (const char *ca, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const H &h) | |
template<typename A , typename B , typename C , typename D , typename E , typename F , typename G , typename H , typename I > | |
Format (const char *ca, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const H &h, const I &i) | |
Format (const char *ca, const String &a) | |
Format (const char *ca, const String &a, const String &b) | |
Format (const char *ca, const String &a, const String &b, const String &c) | |
Private Member Functions | |
char | process (String &f, char c0) |
template<typename T > | |
void | put (const T &t) |
void | put (const String &t) |
void | put (char t) |
void | put (unsigned char t) |
void | put (short t) |
void | put (unsigned short t) |
void | put (int t) |
void | put (unsigned int t) |
void | put (long t) |
void | put (unsigned long t) |
void | put (long long t) |
void | put (unsigned long long t) |
Private Attributes | |
OStringStream | oss |
Friends | |
BLOCXX_COMMON_API std::ostream & | operator<< (std::ostream &os, const Format &f) |
Definition at line 49 of file Format.hpp.
BLOCXX_NAMESPACE::Format::Format | ( | const char * | ca, |
const A & | a | ||
) |
Definition at line 108 of file Format.hpp.
References BLOCXX_NAMESPACE::String::empty(), process(), and put().
BLOCXX_NAMESPACE::Format::Format | ( | const char * | ca, |
const A & | a, | ||
const B & | b | ||
) |
Definition at line 120 of file Format.hpp.
References BLOCXX_NAMESPACE::String::empty(), process(), and put().
BLOCXX_NAMESPACE::Format::Format | ( | const char * | ca, |
const A & | a, | ||
const B & | b, | ||
const C & | c | ||
) |
Definition at line 133 of file Format.hpp.
References BLOCXX_NAMESPACE::String::empty(), process(), and put().
BLOCXX_NAMESPACE::Format::Format | ( | const char * | ca, |
const A & | a, | ||
const B & | b, | ||
const C & | c, | ||
const D & | d | ||
) |
Definition at line 147 of file Format.hpp.
References BLOCXX_NAMESPACE::String::empty(), process(), and put().
BLOCXX_NAMESPACE::Format::Format | ( | const char * | ca, |
const A & | a, | ||
const B & | b, | ||
const C & | c, | ||
const D & | d, | ||
const E & | e | ||
) |
Definition at line 162 of file Format.hpp.
References BLOCXX_NAMESPACE::String::empty(), process(), and put().
BLOCXX_NAMESPACE::Format::Format | ( | const char * | ca, |
const A & | a, | ||
const B & | b, | ||
const C & | c, | ||
const D & | d, | ||
const E & | e, | ||
const F & | f | ||
) |
Definition at line 178 of file Format.hpp.
References BLOCXX_NAMESPACE::String::empty(), process(), and put().
BLOCXX_NAMESPACE::Format::Format | ( | const char * | ca, |
const A & | a, | ||
const B & | b, | ||
const C & | c, | ||
const D & | d, | ||
const E & | e, | ||
const F & | f, | ||
const G & | g | ||
) |
Definition at line 195 of file Format.hpp.
References BLOCXX_NAMESPACE::String::empty(), process(), and put().
BLOCXX_NAMESPACE::Format::Format | ( | const char * | ca, |
const A & | a, | ||
const B & | b, | ||
const C & | c, | ||
const D & | d, | ||
const E & | e, | ||
const F & | f, | ||
const G & | g, | ||
const H & | h | ||
) |
Definition at line 213 of file Format.hpp.
References BLOCXX_NAMESPACE::String::empty(), process(), and put().
BLOCXX_NAMESPACE::Format::Format | ( | const char * | ca, |
const A & | a, | ||
const B & | b, | ||
const C & | c, | ||
const D & | d, | ||
const E & | e, | ||
const F & | f, | ||
const G & | g, | ||
const H & | h, | ||
const I & | i | ||
) |
Definition at line 232 of file Format.hpp.
References BLOCXX_NAMESPACE::String::empty(), process(), and put().
BLOCXX_NAMESPACE::Format::Format | ( | const char * | ca, |
const String & | a | ||
) |
Definition at line 148 of file Format.cpp.
References BLOCXX_NAMESPACE::String::empty(), process(), and put().
Definition at line 159 of file Format.cpp.
References BLOCXX_NAMESPACE::String::empty(), process(), and put().
BLOCXX_NAMESPACE::Format::Format | ( | const char * | ca, |
const String & | a, | ||
const String & | b, | ||
const String & | c | ||
) |
Definition at line 171 of file Format.cpp.
References BLOCXX_NAMESPACE::String::empty(), process(), and put().
const char * BLOCXX_NAMESPACE::Format::c_str | ( | ) | const |
Definition at line 55 of file Format.cpp.
References BLOCXX_NAMESPACE::OStringStream::c_str(), and oss.
Referenced by BLOCXX_NAMESPACE::Process::killWait().
BLOCXX_NAMESPACE::Format::operator String | ( | ) | const |
Definition at line 45 of file Format.cpp.
References oss, and BLOCXX_NAMESPACE::OStringStream::toString().
char BLOCXX_NAMESPACE::Format::process | ( | String & | f, |
char | c0 | ||
) | [private] |
Definition at line 60 of file Format.cpp.
References BLOCXX_NAMESPACE::String::erase(), i, BLOCXX_NAMESPACE::String::length(), oss, and BLOCXX_NAMESPACE::String::substring().
Referenced by Format().
void BLOCXX_NAMESPACE::Format::put | ( | unsigned long | t | ) | [private] |
Definition at line 143 of file Format.cpp.
void BLOCXX_NAMESPACE::Format::put | ( | long | t | ) | [private] |
Definition at line 142 of file Format.cpp.
void BLOCXX_NAMESPACE::Format::put | ( | long long | t | ) | [private] |
Definition at line 144 of file Format.cpp.
void BLOCXX_NAMESPACE::Format::put | ( | int | t | ) | [private] |
Definition at line 140 of file Format.cpp.
void BLOCXX_NAMESPACE::Format::put | ( | unsigned short | t | ) | [private] |
Definition at line 139 of file Format.cpp.
void BLOCXX_NAMESPACE::Format::put | ( | short | t | ) | [private] |
Definition at line 138 of file Format.cpp.
void BLOCXX_NAMESPACE::Format::put | ( | unsigned char | t | ) | [private] |
Definition at line 137 of file Format.cpp.
void BLOCXX_NAMESPACE::Format::put | ( | char | t | ) | [private] |
Definition at line 136 of file Format.cpp.
void BLOCXX_NAMESPACE::Format::put | ( | unsigned int | t | ) | [private] |
Definition at line 141 of file Format.cpp.
void BLOCXX_NAMESPACE::Format::put | ( | const T & | t | ) | [private] |
void BLOCXX_NAMESPACE::Format::put | ( | unsigned long long | t | ) | [private] |
Definition at line 145 of file Format.cpp.
void BLOCXX_NAMESPACE::Format::put | ( | const String & | t | ) | [private] |
Definition at line 116 of file Format.cpp.
References oss.
String BLOCXX_NAMESPACE::Format::toString | ( | ) | const |
Definition at line 50 of file Format.cpp.
References oss, and BLOCXX_NAMESPACE::OStringStream::toString().
Referenced by BLOCXX_NAMESPACE::DelayedFormat::operator String().
BLOCXX_COMMON_API std::ostream& operator<< | ( | std::ostream & | os, |
const Format & | f | ||
) | [friend] |
Definition at line 110 of file Format.cpp.
OStringStream BLOCXX_NAMESPACE::Format::oss [private] |
Definition at line 80 of file Format.hpp.
Referenced by c_str(), operator String(), BLOCXX_NAMESPACE::operator<<(), process(), put(), and toString().