torc-master
|
Device database console streams class. More...
#include <DDBConsoleStreams.hpp>
Public Types | |
typedef std::basic_istream< char > | istream |
Internal typedef of istream;. More... | |
typedef std::basic_ostream< char > | ostream |
Internal typedef of ostream;. More... | |
Public Member Functions | |
DDBConsoleStreams (void) | |
Null constructor. More... | |
DDBConsoleStreams (istream &inIn, ostream &inOut, ostream &inErr, ostream &inLog) | |
Explicit constructor. More... | |
virtual | ~DDBConsoleStreams (void) |
Virtual destructor. More... | |
istream & | mIn (void) |
Returns the database console input stream. More... | |
ostream & | mOut (void) |
Returns the database console output stream. More... | |
ostream & | mErr (void) |
Returns the database console error stream. More... | |
ostream & | mLog (void) |
Returns the database console log stream. More... | |
istream & | getConsoleIn (void) |
Returns the database console input stream. More... | |
ostream & | getConsoleOut (void) |
Returns the database console output stream. More... | |
ostream & | getConsoleErr (void) |
Returns the database console error stream. More... | |
ostream & | getConsoleLog (void) |
Returns the database console log stream. More... | |
void | setConsoleIn (istream &inStream) |
Sets the database console input stream. More... | |
void | setConsoleOut (ostream &inStream) |
Sets the database console output stream. More... | |
void | setConsoleErr (ostream &inStream) |
Sets the database console error stream. More... | |
void | setConsoleLog (ostream &inStream) |
Sets the database console log stream. More... | |
virtual void | setConsoleStreams (istream &inIn, ostream &inOut, ostream &inErr, ostream &inLog) |
Sets all of the database console streams. More... | |
Static Public Attributes | |
static DDBConsoleStreams | sDefaultConsoleStreams |
static DDBConsoleStreams | sNullConsoleStreams |
Protected Attributes | |
istream * | mInPtr |
Pointer to the database console input stream. More... | |
ostream * | mOutPtr |
ostream * | mErrPtr |
ostream * | mLogPtr |
Device database console streams class.
This allows the user to specify alternate streams for cin, cout, and cerr, to redirect console input to or output from the device database.
Definition at line 37 of file DDBConsoleStreams.hpp.
Internal typedef of istream;.
Definition at line 41 of file DDBConsoleStreams.hpp.
Internal typedef of ostream;.
Definition at line 43 of file DDBConsoleStreams.hpp.
torc::architecture::DDBConsoleStreams::DDBConsoleStreams | ( | void | ) |
Null constructor.
Definition at line 32 of file DDBConsoleStreams.cpp.
|
inline |
Explicit constructor.
Definition at line 51 of file DDBConsoleStreams.hpp.
|
inlinevirtual |
|
inline |
Returns the database console error stream.
Definition at line 69 of file DDBConsoleStreams.hpp.
|
inline |
Returns the database console input stream.
Definition at line 65 of file DDBConsoleStreams.hpp.
|
inline |
Returns the database console log stream.
Definition at line 71 of file DDBConsoleStreams.hpp.
|
inline |
Returns the database console output stream.
Definition at line 67 of file DDBConsoleStreams.hpp.
|
inline |
Returns the database console error stream.
Definition at line 61 of file DDBConsoleStreams.hpp.
|
inline |
Returns the database console input stream.
Definition at line 57 of file DDBConsoleStreams.hpp.
|
inline |
Returns the database console log stream.
Definition at line 63 of file DDBConsoleStreams.hpp.
|
inline |
Returns the database console output stream.
Definition at line 59 of file DDBConsoleStreams.hpp.
|
inline |
Sets the database console error stream.
Definition at line 77 of file DDBConsoleStreams.hpp.
|
inline |
Sets the database console input stream.
Definition at line 73 of file DDBConsoleStreams.hpp.
|
inline |
Sets the database console log stream.
Definition at line 79 of file DDBConsoleStreams.hpp.
|
inline |
Sets the database console output stream.
Definition at line 75 of file DDBConsoleStreams.hpp.
|
inlinevirtual |
Sets all of the database console streams.
inIn | The console input stream. |
inOut | The console output stream. |
inErr | The console error stream. |
inLog | The console log stream. |
Reimplemented in torc::architecture::DDB.
Definition at line 85 of file DDBConsoleStreams.hpp.
|
protected |
Definition at line 96 of file DDBConsoleStreams.hpp.
|
protected |
Pointer to the database console input stream.
Definition at line 94 of file DDBConsoleStreams.hpp.
|
protected |
Definition at line 97 of file DDBConsoleStreams.hpp.
|
protected |
Definition at line 95 of file DDBConsoleStreams.hpp.
|
static |
Definition at line 45 of file DDBConsoleStreams.hpp.
|
static |
Definition at line 46 of file DDBConsoleStreams.hpp.