PARTONS/ElementaryUtils  
Basic utility softwares (Logger, threads, etc)
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ElemUtils::Formatter Class Reference

Public Types

enum  ConvertToString { to_str }
 

Public Member Functions

 Formatter ()
 
 ~Formatter ()
 
template<typename Type >
Formatteroperator<< (const Type &value)
 
std::string str () const
 
 operator std::string () const
 Automatic cast to string. More...
 
 operator std::stringstream & ()
 Automatic cast to stringstream. More...
 
std::string operator>> (ConvertToString)
 
void print ()
 
void clear ()
 

Private Member Functions

 Formatter (const Formatter &)
 
Formatteroperator= (Formatter &)
 

Private Attributes

std::stringstream m_stream
 

Member Enumeration Documentation

◆ ConvertToString

Enumerator
to_str 

Constructor & Destructor Documentation

◆ Formatter() [1/2]

ElemUtils::Formatter::Formatter ( )
inline

◆ ~Formatter()

ElemUtils::Formatter::~Formatter ( )
inline

◆ Formatter() [2/2]

ElemUtils::Formatter::Formatter ( const Formatter )
private

Member Function Documentation

◆ clear()

void ElemUtils::Formatter::clear ( )
inline

◆ operator std::string()

ElemUtils::Formatter::operator std::string ( ) const
inline

Automatic cast to string.

◆ operator std::stringstream &()

ElemUtils::Formatter::operator std::stringstream & ( )
inline

Automatic cast to stringstream.

◆ operator<<()

template<typename Type >
Formatter& ElemUtils::Formatter::operator<< ( const Type &  value)
inline

◆ operator=()

Formatter& ElemUtils::Formatter::operator= ( Formatter )
private

◆ operator>>()

std::string ElemUtils::Formatter::operator>> ( ConvertToString  )
inline

◆ print()

void ElemUtils::Formatter::print ( )

◆ str()

std::string ElemUtils::Formatter::str ( ) const
inline

Member Data Documentation

◆ m_stream

std::stringstream ElemUtils::Formatter::m_stream
private

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