5#if __cplusplus >= CIOF_DEFAULT_CPP_STD
83 template <
typename T,
typename ... Args>
84 std::string
parse(T _fmt, Args ... _args);
106 template <
typename T,
typename ... Args>
122 template <
typename T>
130 template <
typename T,
typename ... Args>
137 template <
typename T>
145 template <
typename T,
typename ... Args>
152 template <
typename T>
160 template <
typename T,
typename ... Args>
168 template <
typename T>
176 template <
typename T,
typename ... Args>
177 void echo(T _t, Args ... _args);
183 template <
typename T>
191 template <
typename T,
typename ... Args>
198 template <
typename T>
206 template <
typename T,
typename ... Args>
215 template <
typename T>
216 void input(
const std::string &_prompt, T *_var);
223 template <
typename T>
233 template <
typename T,
typename ... Args>
234 std::string
format(T _t, Args ... _args);
263 std::string
rgbSet(
unsigned int r,
unsigned int g,
unsigned int b);
291# error "Cannot compile with the current C++ standard"
292# pragma message("Use C++ " CIOF_TOSTRING(CIOF_DEFAULT_CPP_STD) " or higer instead of " CIOF_TOSTRING(__cplusplus))
Implementation functions.
std::string parse(T _fmt, Args ... _args)
Parse the params for printing and echoing.
void __out(const OutputType &_outType, T _t)
Output the with its corresponding type either to:
std::string toString(const T &_val)
Convert to string safely.
void initANSI()
Initialize ANSI text option in Windows 10 or later NOTE: ONLY WORKS IN WINDOWS 10 OR LATER.
struct ciof::CIOFOutputConfig CIOFOutputConfig
Set output configuration for ciof::impl::__out() function and its wrappers.
void cursorPos(int _row, int _col)
Get the set cursor position using _row and _col Essentially calls the getCursorPos() function and the...
std::string getCursorPos(int _row, int _col)
Get the set cursor position using _row and _col.
OutputType
Set output type for ciof::impl::__out() function and its helper functions Out : To Standard Output Er...
std::string styleReset()
Reset all the styles and colors in the terminal.
std::string rgbSet(unsigned int r, unsigned int g, unsigned int b)
Set the RGB color in the terminal.
std::string format(T _t, Args ... _args)
Get everything as a string format.
void printLog(T _t)
Print to the standard log for _t
OutputStyle
Set output style: Bold Italic Underline Strikethrough.
CIOFOutputConfig outputConf
Set default output configuration.
void printError(T _t)
Print to the standard error for _t
void input(const std::string &_prompt, T *_var)
Get full input from the user with a prompt.
void print()
Print a new line.
std::string styleSet(const OutputStyle &_style)
Set the styles according to the OutputStyle type.
void echo(T _t)
Echo to the standard output for _t
std::string colorSet(int _color)
Set the colors from the default color palette from the terminal.
void echoError(T _t)
Echo to the standard error for _t
void echoLog(T _t)
Echo to the standard log for _t
Set output configuration for ciof::impl::__out() function and its wrappers.
std::string spacingDelimeter