Console access helper class. More...

#include <console.h>

Static Public Member Functions

static void wait_for_key ()
 Block until a key is pressed in the console window. More...
 
static void write (const std::string &text)
 Writes text to the console window. More...
 
template<class Arg1 >
static void write (const std::string &format, Arg1 arg1)
 Write. More...
 
template<class Arg1 , class Arg2 >
static void write (const std::string &format, Arg1 arg1, Arg2 arg2)
 Write. More...
 
template<class Arg1 , class Arg2 , class Arg3 >
static void write (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3)
 Write. More...
 
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 >
static void write (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4)
 Write. More...
 
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 >
static void write (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5)
 Write. More...
 
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 >
static void write (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6)
 Write. More...
 
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 , class Arg7 >
static void write (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6, Arg7 arg7)
 Write. More...
 
static void write_line (const std::string &text)
 Writes text to the console window and then advances to a new line. More...
 
template<class Arg1 >
static void write_line (const std::string &format, Arg1 arg1)
 Write line. More...
 
template<class Arg1 , class Arg2 >
static void write_line (const std::string &format, Arg1 arg1, Arg2 arg2)
 Write line. More...
 
template<class Arg1 , class Arg2 , class Arg3 >
static void write_line (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3)
 Write line. More...
 
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 >
static void write_line (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4)
 Write line. More...
 
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 >
static void write_line (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5)
 Write line. More...
 
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 >
static void write_line (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6)
 Write line. More...
 
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 , class Arg7 >
static void write_line (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6, Arg7 arg7)
 Write line. More...
 

Detailed Description

Console access helper class.

Member Function Documentation

static void clan::Console::wait_for_key ( )
static

Block until a key is pressed in the console window.

This function does not do anything on Linux.

static void clan::Console::write ( const std::string text)
static

Writes text to the console window.

Referenced by write(), and write_line().

template<class Arg1 >
static void clan::Console::write ( const std::string format,
Arg1  arg1 
)
inlinestatic

Write.

Parameters
format= String Ref
arg1= Arg1

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write().

template<class Arg1 , class Arg2 >
static void clan::Console::write ( const std::string format,
Arg1  arg1,
Arg2  arg2 
)
inlinestatic

Write.

Parameters
format= String Ref
arg1= Arg1
arg2= Arg2

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write().

template<class Arg1 , class Arg2 , class Arg3 >
static void clan::Console::write ( const std::string format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3 
)
inlinestatic

Write.

Parameters
format= String Ref
arg1= Arg1
arg2= Arg2
arg3= Arg3

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write().

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 >
static void clan::Console::write ( const std::string format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4 
)
inlinestatic

Write.

Parameters
format= String Ref
arg1= Arg1
arg2= Arg2
arg3= Arg3
arg4= Arg4

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write().

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 >
static void clan::Console::write ( const std::string format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
Arg5  arg5 
)
inlinestatic

Write.

Parameters
format= String Ref
arg1= Arg1
arg2= Arg2
arg3= Arg3
arg4= Arg4
arg5= Arg5

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write().

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 >
static void clan::Console::write ( const std::string format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
Arg5  arg5,
Arg6  arg6 
)
inlinestatic

Write.

Parameters
format= String Ref
arg1= Arg1
arg2= Arg2
arg3= Arg3
arg4= Arg4
arg5= Arg5
arg6= Arg6

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write().

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 , class Arg7 >
static void clan::Console::write ( const std::string format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
Arg5  arg5,
Arg6  arg6,
Arg7  arg7 
)
inlinestatic

Write.

Parameters
format= String Ref
arg1= Arg1
arg2= Arg2
arg3= Arg3
arg4= Arg4
arg5= Arg5
arg6= Arg6
arg7= Arg7

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write().

static void clan::Console::write_line ( const std::string text)
inlinestatic

Writes text to the console window and then advances to a new line.

References write().

Referenced by write_line().

template<class Arg1 >
static void clan::Console::write_line ( const std::string format,
Arg1  arg1 
)
inlinestatic

Write line.

Parameters
format= String Ref
arg1= Arg1

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write_line().

template<class Arg1 , class Arg2 >
static void clan::Console::write_line ( const std::string format,
Arg1  arg1,
Arg2  arg2 
)
inlinestatic

Write line.

Parameters
format= String Ref
arg1= Arg1
arg2= Arg2

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write_line().

template<class Arg1 , class Arg2 , class Arg3 >
static void clan::Console::write_line ( const std::string format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3 
)
inlinestatic

Write line.

Parameters
format= String Ref
arg1= Arg1
arg2= Arg2
arg3= Arg3

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write_line().

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 >
static void clan::Console::write_line ( const std::string format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4 
)
inlinestatic

Write line.

Parameters
format= String Ref
arg1= Arg1
arg2= Arg2
arg3= Arg3
arg4= Arg4

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write_line().

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 >
static void clan::Console::write_line ( const std::string format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
Arg5  arg5 
)
inlinestatic

Write line.

Parameters
format= String Ref
arg1= Arg1
arg2= Arg2
arg3= Arg3
arg4= Arg4
arg5= Arg5

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write_line().

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 >
static void clan::Console::write_line ( const std::string format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
Arg5  arg5,
Arg6  arg6 
)
inlinestatic

Write line.

Parameters
format= String Ref
arg1= Arg1
arg2= Arg2
arg3= Arg3
arg4= Arg4
arg5= Arg5
arg6= Arg6

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write_line().

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 , class Arg7 >
static void clan::Console::write_line ( const std::string format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
Arg5  arg5,
Arg6  arg6,
Arg7  arg7 
)
inlinestatic

Write line.

Parameters
format= String Ref
arg1= Arg1
arg2= Arg2
arg3= Arg3
arg4= Arg4
arg5= Arg5
arg6= Arg6
arg7= Arg7

References clan::f, clan::StringFormat::get_result(), clan::StringFormat::set_arg(), and write_line().


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