Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
include
ecl
streams
manipulators
clear_screen.hpp
Go to the documentation of this file.
1
11
/*****************************************************************************
12
** Ifdefs
13
*****************************************************************************/
14
15
#ifndef ECL_STREAMS_CLEAR_SCREEN_HPP_
16
#define ECL_STREAMS_CLEAR_SCREEN_HPP_
17
18
/*****************************************************************************
19
** Includes
20
*****************************************************************************/
21
22
#include <ecl/config/macros.hpp>
23
#include "../manipulators.hpp"
24
#include "../text_stream.hpp"
25
#include "../macros.hpp"
26
27
/*****************************************************************************
28
** Namespaces
29
*****************************************************************************/
30
31
namespace
ecl
{
32
33
/*****************************************************************************
34
** Interface [ClearScreen]
35
*****************************************************************************/
48
class
ecl_streams_PUBLIC
ClearScreen
:
public
Manipulator
<ClearScreen> {
49
public
:
63
template
<
typename
ODevice>
64
void
action
(
interfaces::OutputTextStream<ODevice,true>
& ostream) {
65
for
(
int
i = 0; i < 80; ++i ) {
66
ostream <<
"\n"
;
67
}
68
}
69
virtual
~ClearScreen
() {}
70
};
71
72
/*****************************************************************************
73
** Global Variables
74
*****************************************************************************/
75
76
extern
ClearScreen
clrscr
;
77
78
}
// namespace ecl
79
80
81
#endif
/* ECL_STREAMS_CLEAR_SCREEN_HPP_ */
ecl::Manipulator
Parent template for c++ style stream manipulators.
Definition:
manipulator.hpp:92
ecl
ecl::clrscr
ClearScreen clrscr
ecl::ClearScreen::action
void action(interfaces::OutputTextStream< ODevice, true > &ostream)
Clears a terminal screen the c++ (hard) way.
Definition:
clear_screen.hpp:64
ecl::interfaces::OutputTextStream
Parent template for output text streams.
Definition:
output_text_stream.hpp:55
ecl::ClearScreen::~ClearScreen
virtual ~ClearScreen()
Definition:
clear_screen.hpp:69
ecl::ClearScreen
Manipulator that clears a terminal screen the c++ (hard) way.
Definition:
clear_screen.hpp:48
ecl_streams_PUBLIC
#define ecl_streams_PUBLIC
Definition:
ecl/streams/macros.hpp:37
xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:37