end_of_line.hpp
Go to the documentation of this file.
1 
8 /*****************************************************************************
9 ** Ifdefs
10 *****************************************************************************/
11 
12 #ifndef ECL_STREAMS_END_OF_LINE_HPP_
13 #define ECL_STREAMS_END_OF_LINE_HPP_
14 
15 /*****************************************************************************
16 ** Includes
17 *****************************************************************************/
18 
19 #include <ecl/config/macros.hpp>
20 #include "../manipulators.hpp"
21 #include "../text_stream.hpp"
22 #include "../macros.hpp"
23 
24 /*****************************************************************************
25 ** Namespaces
26 *****************************************************************************/
27 
28 namespace ecl {
29 
30 /*****************************************************************************
31 ** Interface [EndOfLine]
32 *****************************************************************************/
43 class ecl_streams_PUBLIC EndOfLine : public Manipulator<EndOfLine> {
44 public:
54  template <typename ODevice>
55  void action (interfaces::OutputTextStream<ODevice,true>& ostream) {
56  ostream << "\n";
57  ostream.flush();
58  }
59 
60  virtual ~EndOfLine() {}
61 };
62 
63 /*****************************************************************************
64 ** Global Variables
65 *****************************************************************************/
66 
67 extern EndOfLine endl;
68 
69 } // namespace ecl
70 
71 #endif /* ECL_STREAMS_END_OF_LINE_HPP_ */
#define ecl_streams_PUBLIC
EndOfLine endl
action


xbot_node
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:28:13