Inheritance diagram for Console::ConsoleConduit:
Public Types | |
typedef DeviceConduit copy | copy |
typedef DeviceConduit read | read |
typedef DeviceConduit write | write |
Public Member Functions | |
package | this (FileDevice device) |
void | setTranscode (bool enabled) |
Protected Member Functions | |
char[] | getName () |
Private Member Functions | |
IConduit | copy (IConduit source) |
uint | read (void[] dst) |
uint | write (void[] src) |
this (ConduitStyle.Bits style, bool seekable) | |
void | close () |
uint | bufferSize () |
abstract uint | reader (void[] dst) |
abstract uint | writer (void[] src) |
bool | flush (void[] src) |
void | attach (IConduitFilter filter) |
void | bind (IConduit conduit, IConduitFilter next) |
void | unbind () |
bool | isSeekable () |
bool | isReadable () |
bool | isWritable () |
bool | isTextual () |
ConduitStyle Bits | getStyle () |
Static Private Member Functions | |
static bool | isHalting () |
Private Attributes | |
bool | transcode = false |
Classes | |
class | VersionWin32 |
Note that the console is fixed at Utf8 for both linux and Win32. The latter is actually Utf16 native, but it's just too much hassle for a developer to handle the distinction when it really should be a no-brainer. In particular, the Win32 console functions don't work with redirection. This causes additional difficulties that can be ameliorated by asserting console I/O is always Utf8, in all modes.
Definition at line 149 of file Console.d.
|
Reimplemented from DeviceConduit. Definition at line 142 of file Copy of Console.d. |
|
Reimplemented from DeviceConduit. Definition at line 143 of file Copy of Console.d. |
|
Reimplemented from DeviceConduit. Definition at line 144 of file Copy of Console.d. |
|
Create a FileConduit on the provided FileDevice. This is strictly for adapting existing devices such as Stdout and friends. Reimplemented from DeviceConduit. Definition at line 158 of file Copy of Console.d. References buffer, setTranscode(), and version. |
|
Enable or disable transcoding for Win32 console. This is not required on linux, since it is utf8 throughout. When Win32 stdout is redirected, the content is *not* transcoded, since the unicode functions fail in such cases. Instead, the content is emitted raw. Definition at line 180 of file Copy of Console.d. Referenced by Console::ConsoleConduit::VersionWin32::reopen(), and this(). |
|
Return the name of this device Reimplemented from DeviceConduit. Definition at line 191 of file Copy of Console.d. |
|
Transfer the content of another conduit to this one. Returns a reference to this class, and throws IOException on failure. Reimplemented from IConduit. |
|
read from conduit into a target buffer Reimplemented from IConduit. Definition at line 177 of file Conduit.d. References Conduit::filter, and IConduitFilter::reader(). Referenced by DeviceConduit::VersionPosix::reader(). |
|
write to conduit from a source buffer Reimplemented from IConduit. Definition at line 188 of file Conduit.d. References Conduit::filter, and IConduitFilter::writer(). Referenced by Conduit::flush(), and DeviceConduit::VersionPosix::writer(). |
|
Construct a conduit with the given style and seek abilities. Conduits are either seekable or non-seekable. Reimplemented from Conduit. Definition at line 69 of file DeviceConduit.d. |
|
Callback to close the file. This is invoked from the Resource base-class when the resource is being closed. Reimplemented from Conduit. Definition at line 98 of file DeviceConduit.d. Referenced by FileBucket::close(), ServletResponse::copyFile(), Properties::load(), and UnicodeFileTemplate(). |
|
Return a preferred size for buffering conduit I/O Reimplemented from Conduit. Definition at line 122 of file DeviceConduit.d. |
|
conduit-specific reader Reimplemented from IConduitFilter. Implemented in Socket. |
|
conduit-specific writer Reimplemented from IConduitFilter. Implemented in Socket. |
|
flush provided content to the conduit Reimplemented from IConduit. Definition at line 132 of file Conduit.d. References Conduit::write(). |
|
Please refer to IConduit.attach for details Reimplemented from IConduit. Definition at line 150 of file Conduit.d. References IConduitFilter::bind(). |
|
Reimplemented from IConduitFilter. |
|
Reimplemented from IConduitFilter. |
|
Returns true if this conduit is seekable (whether it implements ISeekable) Reimplemented from IConduit. Definition at line 200 of file Conduit.d. References Conduit::seekable. |
|
Returns true is this conduit can be read from Reimplemented from IConduit. Definition at line 211 of file Conduit.d. References ConduitStyle::access(), ConduitStyle::Read, and Conduit::style. |
|
Returns true if this conduit can be written to Reimplemented from IConduit. Definition at line 222 of file Conduit.d. References ConduitStyle::access(), Conduit::style, and ConduitStyle::Write. |
|
Returns true if this conduit is text-based Reimplemented from IConduit. Reimplemented in SocketConduit. Definition at line 233 of file Conduit.d. References ConduitStyle::access(), Conduit::style, and ConduitStyle::Text. |
|
Return the style used when creating this conduit Definition at line 264 of file Conduit.d. References Conduit::style. |
|
Is the application terminating? Definition at line 275 of file Conduit.d. References halting. |
|
Definition at line 147 of file Copy of Console.d. Referenced by Console::ConsoleConduit::VersionWin32::write(). |