CIOF v1.0.0-build
Char Input Output Format - A simple Input and Output utility library
Loading...
Searching...
No Matches
ciof::impl Namespace Reference

Implementation functions. More...

Functions

template<typename T>
void __out (const OutputType &_outType, T _t)
 Output the with its corresponding type either to:
template<typename T, typename ... Args>
void __out (const OutputType &_outType, T _t, Args ... _args)
 Output the with its corresponding type either to:
template<typename T, typename ... Args>
std::string parse (T _fmt, Args ... _args)
 Parse the params for printing and echoing.
template<typename T>
std::string toString (const T &_val)
 Convert to string safely.

Detailed Description

Implementation functions.

Function Documentation

◆ __out() [1/2]

template<typename T>
void ciof::impl::__out ( const OutputType & _outType,
T _t )

Output the with its corresponding type either to:

  • Standard output
  • Standard error
  • Standard log (AKA: Error but unbuffered)
    Parameters
    _outTypeType for OUT, ERR or LOG
    _tText to add

◆ __out() [2/2]

template<typename T, typename ... Args>
void ciof::impl::__out ( const OutputType & _outType,
T _t,
Args ... _args )

Output the with its corresponding type either to:

  • Standard output
  • Standard error
  • Standard log (AKA: Error but unbuffered)
    Parameters
    _outTypeType for OUT, ERR or LOG
    _tText to add
    _argsMore text to add

◆ parse()

template<typename T, typename ... Args>
std::string ciof::impl::parse ( T _fmt,
Args ... _args )

Parse the params for printing and echoing.

Returns
_fmt parameter 1 to parse
_args parameter 2 to the last one to parse
std::string Total parsed

◆ toString()

template<typename T>
std::string ciof::impl::toString ( const T & _val)

Convert to string safely.

Parameters
_valany convertable type to string
Returns
std::string total converted strig