blocxx
BLOCXX_NAMESPACE::Format Class Reference

#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)
 

Detailed Description

Definition at line 49 of file Format.hpp.

Constructor & Destructor Documentation

◆ Format() [1/12]

template<typename A>
BLOCXX_NAMESPACE::Format::Format ( const char * ca,
const A & a )

Definition at line 108 of file Format.hpp.

References BLOCXX_NAMESPACE::String::empty(), oss, process(), and put().

Referenced by operator<<.

◆ Format() [2/12]

template<typename A, typename B>
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(), oss, process(), and put().

◆ Format() [3/12]

template<typename A, typename B, typename C>
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(), oss, process(), and put().

◆ Format() [4/12]

template<typename A, typename B, typename C, typename D>
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(), oss, process(), and put().

◆ Format() [5/12]

template<typename A, typename B, typename C, typename D, typename E>
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(), oss, process(), and put().

◆ Format() [6/12]

template<typename A, typename B, typename C, typename D, typename E, typename F>
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(), F, oss, process(), and put().

◆ Format() [7/12]

template<typename A, typename B, typename C, typename D, typename E, typename F, typename G>
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(), F, G, oss, process(), and put().

◆ Format() [8/12]

template<typename A, typename B, typename C, typename D, typename E, typename F, typename G, typename H>
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(), F, G, H, oss, process(), and put().

◆ Format() [9/12]

template<typename A, typename B, typename C, typename D, typename E, typename F, typename G, typename H, typename I>
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(), F, G, H, I, oss, process(), and put().

◆ Format() [10/12]

BLOCXX_NAMESPACE::Format::Format ( const char * ca,
const String & a )

Definition at line 148 of file Format.cpp.

References BLOCXX_NAMESPACE::String::empty(), oss, process(), and put().

◆ Format() [11/12]

BLOCXX_NAMESPACE::Format::Format ( const char * ca,
const String & a,
const String & b )

Definition at line 159 of file Format.cpp.

References BLOCXX_NAMESPACE::String::empty(), oss, process(), and put().

◆ Format() [12/12]

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(), oss, process(), and put().

Member Function Documentation

◆ c_str()

const char * BLOCXX_NAMESPACE::Format::c_str ( ) const

◆ operator String()

BLOCXX_NAMESPACE::Format::operator String ( ) const

Definition at line 45 of file Format.cpp.

References oss.

◆ process()

char BLOCXX_NAMESPACE::Format::process ( String & f,
char c0 )
private

◆ put() [1/12]

void BLOCXX_NAMESPACE::Format::put ( char t)
private

Definition at line 136 of file Format.cpp.

◆ put() [2/12]

void BLOCXX_NAMESPACE::Format::put ( const String & t)
private

Definition at line 116 of file Format.cpp.

References oss.

◆ put() [3/12]

template<typename T>
void BLOCXX_NAMESPACE::Format::put ( const T & t)
private

Definition at line 100 of file Format.hpp.

References oss.

Referenced by Format(), Format(), Format(), Format(), Format(), Format(), Format(), Format(), Format(), Format(), Format(), and Format().

◆ put() [4/12]

void BLOCXX_NAMESPACE::Format::put ( int t)
private

Definition at line 140 of file Format.cpp.

◆ put() [5/12]

void BLOCXX_NAMESPACE::Format::put ( long long t)
private

Definition at line 144 of file Format.cpp.

◆ put() [6/12]

void BLOCXX_NAMESPACE::Format::put ( long t)
private

Definition at line 142 of file Format.cpp.

◆ put() [7/12]

void BLOCXX_NAMESPACE::Format::put ( short t)
private

Definition at line 138 of file Format.cpp.

◆ put() [8/12]

void BLOCXX_NAMESPACE::Format::put ( unsigned char t)
private

Definition at line 137 of file Format.cpp.

◆ put() [9/12]

void BLOCXX_NAMESPACE::Format::put ( unsigned int t)
private

Definition at line 141 of file Format.cpp.

◆ put() [10/12]

void BLOCXX_NAMESPACE::Format::put ( unsigned long long t)
private

Definition at line 145 of file Format.cpp.

◆ put() [11/12]

void BLOCXX_NAMESPACE::Format::put ( unsigned long t)
private

Definition at line 143 of file Format.cpp.

◆ put() [12/12]

void BLOCXX_NAMESPACE::Format::put ( unsigned short t)
private

Definition at line 139 of file Format.cpp.

◆ toString()

String BLOCXX_NAMESPACE::Format::toString ( ) const

Definition at line 50 of file Format.cpp.

References oss.

Referenced by BLOCXX_NAMESPACE::ExceptionDetail::FormatMsg::FormatMsg().

Friends And Related Symbol Documentation

◆ operator<<

BLOCXX_COMMON_API std::ostream & operator<< ( std::ostream & os,
const Format & f )
friend

Member Data Documentation

◆ oss

OStringStream BLOCXX_NAMESPACE::Format::oss
private

The documentation for this class was generated from the following files: