blocxx
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
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 79 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 138 of file Format.hpp.

◆ Format() [2/12]

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

Definition at line 150 of file Format.hpp.

References 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 163 of file Format.hpp.

References BLOCXX_NAMESPACE::String::empty().

◆ 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 177 of file Format.hpp.

References BLOCXX_NAMESPACE::String::empty(), 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 192 of file Format.hpp.

◆ 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 208 of file Format.hpp.

◆ 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 225 of file Format.hpp.

◆ 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 243 of file Format.hpp.

◆ 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 262 of file Format.hpp.

◆ Format() [10/12]

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

Definition at line 178 of file Format.cpp.

◆ Format() [11/12]

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

Definition at line 189 of file Format.cpp.

◆ Format() [12/12]

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

Definition at line 201 of file Format.cpp.

Member Function Documentation

◆ c_str()

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

Definition at line 85 of file Format.cpp.

Referenced by BLOCXX_NAMESPACE::throwStringConversion().

◆ operator String()

BLOCXX_NAMESPACE::Format::operator String ( ) const

Definition at line 75 of file Format.cpp.

References i.

◆ process()

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

Definition at line 90 of file Format.cpp.

Referenced by Format(), and put().

◆ put() [1/12]

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

Definition at line 166 of file Format.cpp.

◆ put() [2/12]

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

Definition at line 146 of file Format.cpp.

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

◆ put() [3/12]

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

Definition at line 130 of file Format.hpp.

Referenced by Format(), and put().

◆ put() [4/12]

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

Definition at line 170 of file Format.cpp.

◆ put() [5/12]

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

Definition at line 174 of file Format.cpp.

◆ put() [6/12]

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

Definition at line 172 of file Format.cpp.

◆ put() [7/12]

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

Definition at line 168 of file Format.cpp.

◆ put() [8/12]

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

Definition at line 167 of file Format.cpp.

◆ put() [9/12]

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

Definition at line 171 of file Format.cpp.

◆ put() [10/12]

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

Definition at line 175 of file Format.cpp.

◆ put() [11/12]

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

Definition at line 173 of file Format.cpp.

◆ put() [12/12]

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

Definition at line 169 of file Format.cpp.

◆ toString()

String BLOCXX_NAMESPACE::Format::toString ( ) const

Definition at line 80 of file Format.cpp.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 139 of file Format.cpp.

Member Data Documentation

◆ oss

OStringStream BLOCXX_NAMESPACE::Format::oss
private

Definition at line 140 of file Format.hpp.


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