GCC Code Coverage Report


Directory: codebase/
File: codebase/library/include/public/lib.Stream.hpp
Date: 2023-03-16 04:37:09
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 2 2 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /**
2 * @file lib.Stream.hpp
3 * @author Sergey Baigudin, sergey@baigudin.software
4 * @copyright 2022, Sergey Baigudin, Baigudin Software
5 */
6 #ifndef LIB_STREAM_HPP_
7 #define LIB_STREAM_HPP_
8
9 #include "sys.Call.hpp"
10
11 namespace eoos
12 {
13 namespace lib
14 {
15
16 /**
17 * @class Stream
18 * @brief Stream class.
19 */
20 class Stream
21 {
22
23 public:
24
25 /**
26 * @brief Returns system output character stream.
27 *
28 * @return The system output character stream.
29 */
30 6 static api::OutStream<char_t>& cout()
31 {
32 6 return sys::Call::get().getOutStreamChar();
33 }
34
35 /**
36 * @brief Returns system error output character stream.
37 *
38 * @return The system error output character stream.
39 */
40 2 static api::OutStream<char_t>& cerr()
41 {
42 2 return sys::Call::get().getErrorStreamChar();
43 }
44
45 };
46
47 } // namespace lib
48 } // namespace eoos
49 #endif // LIB_STREAM_HPP_
50