Qx v0.5.8
Qt Extensions Library
Loading...
Searching...
No Matches
qx-iostream.h
1#ifndef QX_IOSTREAM_H
2#define QX_IOSTREAM_H
3
4// Shared Lib Support
5#include "qx/core/qx_core_export.h"
6
7// Qt Includes
8#include <QTextStream>
9
10namespace Qx
11{
12//-Namespace Members--------------------------------------------------------------------------------------------
13inline QTextStream cout = QTextStream(stdout); // QTextStream version of std::cout
14inline QTextStream cerr = QTextStream(stderr); // QTextStream version of std::cerr
15inline QTextStream cin = QTextStream(stdin); // QTextStream version of std::cin
16
17//-Namespace Functions------------------------------------------------------------------------------------------
18#if defined _WIN32 || (defined __linux__ && __has_include(<termios.h>))
19QX_CORE_EXPORT void setUserInputEchoEnabled(bool enabled);
20#endif
21}
22
23#endif // QX_IOSTREAM_H
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition qx-processwaiter.cpp:5
void setUserInputEchoEnabled(bool enabled)
Definition qx-iostream_win.cpp:12
QTextStream cin
Definition qx-iostream.h:15
QTextStream cout
Definition qx-iostream.h:13
QTextStream cerr
Definition qx-iostream.h:14