#include <conchan.h>
Inheritance diagram for PConsoleChannel:
Public Types | |
StandardInput | |
StandardOutput | |
StandardError | |
enum | ConsoleType { StandardInput, StandardOutput, StandardError } |
Public Member Functions | |
PString | GetName () const |
Get the platform and I/O channel type name of the channel. | |
PBoolean | Close () |
Close the channel, shutting down the link to the data source. | |
Construction | |
PConsoleChannel () | |
Create a new console channel object, leaving it unopen. | |
PConsoleChannel (ConsoleType type) | |
Create a new console channel object, connecting to the I/O stream. | |
Overrides from PChannel | |
virtual bool | SetLocalEcho (bool localEcho) |
Set local echo mode. | |
Open functions | |
virtual PBoolean | Open (ConsoleType type) |
Open a serial channal. |
PConsoleChannel::PConsoleChannel | ( | ) |
Create a new console channel object, leaving it unopen.
PConsoleChannel::PConsoleChannel | ( | ConsoleType | type | ) |
Create a new console channel object, connecting to the I/O stream.
type | Type of console for object |
PBoolean PConsoleChannel::Close | ( | ) | [virtual] |
Close the channel, shutting down the link to the data source.
Reimplemented from PChannel.
PString PConsoleChannel::GetName | ( | ) | const [virtual] |
virtual PBoolean PConsoleChannel::Open | ( | ConsoleType | type | ) | [virtual] |
Open a serial channal.
The channel is opened it on the specified port and with the specified attributes.
type | Type of console for object |
virtual bool PConsoleChannel::SetLocalEcho | ( | bool | localEcho | ) | [virtual] |
Set local echo mode.
For some classes of channel, e.g. PConsoleChannel, data read by this channel is automatically echoed. This disables the function so things like password entry can work.
Default behaviour does nothing and return true if the channel is open.
Reimplemented from PChannel.