GM6000 Digital Heater Controller Branch: main
SDX-1330
StdIn.h
Go to the documentation of this file.
1#ifndef Cpl_Io_Stdio_StdIn_h_
2#define Cpl_Io_Stdio_StdIn_h_
3/*-----------------------------------------------------------------------------
4* This file is part of the Colony.Core Project. The Colony.Core Project is an
5* open source project with a BSD type of licensing agreement. See the license
6* agreement (license.txt) in the top/ directory or on the Internet at
7* http://integerfox.com/colony.core/license.txt
8*
9* Copyright (c) 2014-2022 John T. Taylor
10*
11* Redistributions of the source code must retain the above copyright notice.
12*----------------------------------------------------------------------------*/
13/** @file */
14
15#include "Cpl/Io/Stdio/Input_.h"
16
17///
18namespace Cpl {
19///
20namespace Io {
21///
22namespace Stdio {
23
24
25/** This concrete class represents the C-library 'stdin' stream.
26
27 NOTE: Many instances of this class may be created - even
28 though there is only ONE stdin. This is OK because
29 all instance reference the systems/platform 'stdin'
30
31 NOTE: stdin under Windoze is problematic with how the available() method is
32 implemented. See the _win32/Input_.cpp file for more details. There
33 is partial work-around for the issue. It can be enabled be defining
34 the following in colony_confi.h: USE_CPL_IO_STDIO_WIN32_STDIN_CONSOLE_HACK
35 */
36class StdIn : public Input_
37{
38public:
39 /// Constructor
41
42
43public:
44 /** Overriding inherited behavior so as to NOT close the actual native
45 stream. In general closing stdin/stdout/stderr is bad thing.
46 */
47 void close();
48};
49
50}; // end namespaces
51};
52};
53#endif // end header latch
This concrete class implements a Input stream using the underlying platform's native OS 'file interfa...
Definition Input_.h:46
This concrete class represents the C-library 'stdin' stream.
Definition StdIn.h:37
void close()
Overriding inherited behavior so as to NOT close the actual native stream.
StdIn()
Constructor.
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20