Public Types | |
| enum | Flags { CLOSED = 0, READ = 0x0001, WRITE = 0x0002, RDWRMASK = 0x0003, BIN = 0x0004, TEXT = 0x0008, TYPEMASK = 0x000C, CREATE = 0x0010, APPEND = 0x0020, OPEN = 0x0040, OPNMASK = 0x0070, CREATE_WRITE_BIN = CREATE | WRITE | BIN, CREATE_WRITE_TEXT = CREATE | WRITE | TEXT, APPEND_WRITE_BIN = APPEND | WRITE | BIN, APPEND_WRITE_TEXT = APPEND | WRITE | TEXT, CREATE_RDWR_BIN = CREATE | READ | WRITE | BIN, CREATE_RDWR_TEXT = CREATE | READ | WRITE | TEXT, APPEND_RDWR_BIN = APPEND | WRITE | BIN, APPEND_RDWR_TEXT = APPEND | WRITE | TEXT, OPEN_READ_BIN = OPEN | READ | BIN, OPEN_READ_TEXT = OPEN | READ | TEXT } |
| enum | Flags { CLOSED = 0, READ = 0x0001, WRITE = 0x0002, RDWRMASK = 0x0003, BIN = 0x0004, TEXT = 0x0008, TYPEMASK = 0x000C, CREATE = 0x0010, APPEND = 0x0020, OPNMASK = 0x0070, CREATE_WRITE_BIN = CREATE | WRITE | BIN, CREATE_WRITE_TEXT = CREATE | WRITE | TEXT, APPEND_WRITE_BIN = APPEND | WRITE | BIN, APPEND_WRITE_TEXT = APPEND | WRITE | TEXT, CREATE_RDWR_BIN = CREATE | READ | WRITE | BIN, CREATE_RDWR_TEXT = CREATE | READ | WRITE | TEXT, APPEND_RDWR_BIN = APPEND | WRITE | BIN, APPEND_RDWR_TEXT = APPEND | WRITE | TEXT, OPEN_READ_BIN = OPEN | READ | BIN, OPEN_READ_TEXT = OPEN | READ | TEXT } |
| enum | Flags { CLOSED = 0, READ = 0x0001, WRITE = 0x0002, RDWRMASK = 0x0003, BIN = 0x0004, TEXT = 0x0008, TYPEMASK = 0x000C, CREATE = 0x0010, APPEND = 0x0020, OPNMASK = 0x0070, CREATE_WRITE_BIN = CREATE | WRITE | BIN, CREATE_WRITE_TEXT = CREATE | WRITE | TEXT, APPEND_WRITE_BIN = APPEND | WRITE | BIN, APPEND_WRITE_TEXT = APPEND | WRITE | TEXT, CREATE_RDWR_BIN = CREATE | READ | WRITE | BIN, CREATE_RDWR_TEXT = CREATE | READ | WRITE | TEXT, APPEND_RDWR_BIN = APPEND | WRITE | BIN, APPEND_RDWR_TEXT = APPEND | WRITE | TEXT, OPEN_READ_BIN = OPEN | READ | BIN, OPEN_READ_TEXT = OPEN | READ | TEXT } |
| enum | Flags { CLOSED = 0, READ = 0x0001, WRITE = 0x0002, RDWRMASK = 0x0003, BIN = 0x0004, TEXT = 0x0008, TYPEMASK = 0x000C, CREATE = 0x0010, APPEND = 0x0020, OPNMASK = 0x0070, CREATE_WRITE_BIN = CREATE | WRITE | BIN, CREATE_WRITE_TEXT = CREATE | WRITE | TEXT, APPEND_WRITE_BIN = APPEND | WRITE | BIN, APPEND_WRITE_TEXT = APPEND | WRITE | TEXT, CREATE_RDWR_BIN = CREATE | READ | WRITE | BIN, CREATE_RDWR_TEXT = CREATE | READ | WRITE | TEXT, APPEND_RDWR_BIN = APPEND | WRITE | BIN, APPEND_RDWR_TEXT = APPEND | WRITE | TEXT, OPEN_READ_BIN = OPEN | READ | BIN, OPEN_READ_TEXT = OPEN | READ | TEXT } |
Public Methods | |
| FileDescriptor () | |
| ~FileDescriptor () | |
| bool | isOpen () |
| Test if the file is open for I/O operations. More... | |
| bool | open (char *name, Flags f) |
| Opens the given file with the appropriate flags. More... | |
| bool | open (StdOut) |
| Open write-only descriptor to stdout. | |
| bool | open (StdErr) |
| Open write-only descriptor to stderr. | |
| bool | open (StdIn) |
| Open read-only descriptor to stdin. | |
| bool | close () |
| Closes the file. More... | |
| bool | write (char *buffer, int len) |
| Write at most len characters to the file. More... | |
| int | read (char *buffer, int max) |
| Read upto max chars from the file. More... | |
| bool | flush () |
| Flushes the file. More... | |
| bool | eof () |
| Indicates whether the end of the file has been reached. | |
| FileDescriptor () | |
| ~FileDescriptor () | |
| bool | isOpen () |
| Test if the file is open for I/O operations. More... | |
| bool | open (char *name, Flags f) |
| Opens the given file with the appropriate flags. More... | |
| bool | open (StdOut) |
| Open write-only descriptor to stdout. | |
| bool | open (StdErr) |
| Open write-only descriptor to stderr. | |
| bool | open (StdIn) |
| Open read-only descriptor to stdin. | |
| bool | close () |
| Closes the file. More... | |
| bool | write (char *buffer, int len) |
| Write at most len characters to the file. More... | |
| int | read (char *buffer, int max) |
| Read upto max chars from the file. More... | |
| bool | flush () |
| Flushes the file. More... | |
| bool | eof () |
| Indicates whether the end of the file has been reached. | |
| FileDescriptor () | |
| ~FileDescriptor () | |
| bool | isOpen () |
| Test if the file is open for I/O operations. More... | |
| bool | open (char *name, Flags f) |
| Opens the given file with the appropriate flags. More... | |
| bool | open (StdOut) |
| Open write-only descriptor to stdout. | |
| bool | open (StdErr) |
| Open write-only descriptor to stderr. | |
| bool | open (StdIn) |
| Open read-only descriptor to stdin. | |
| bool | close () |
| Closes the file. More... | |
| bool | write (char *buffer, int len) |
| Write at most len characters to the file. More... | |
| int | read (char *buffer, int max) |
| Read upto max chars from the file. More... | |
| bool | flush () |
| Flushes the file. More... | |
| bool | eof () |
| Indicates whether the end of the file has been reached. | |
| FileDescriptor () | |
| ~FileDescriptor () | |
| bool | isOpen () |
| Test if the file is open for I/O operations. More... | |
| bool | open (char *name, Flags f) |
| Opens the given file with the appropriate flags. More... | |
| bool | open (StdOut) |
| Open write-only descriptor to stdout. | |
| bool | open (StdErr) |
| Open write-only descriptor to stderr. | |
| bool | open (StdIn) |
| Open read-only descriptor to stdin. | |
| bool | close () |
| Closes the file. More... | |
| bool | write (char *buffer, int len) |
| Write at most len characters to the file. More... | |
| int | read (char *buffer, int max) |
| Read upto max chars from the file. More... | |
| bool | flush () |
| Flushes the file. More... | |
Static Public Attributes | |
| FileDescriptor | stdinFileDescriptor |
| FileDescriptor | stdoutFileDescriptor |
| FileDescriptor | stderrFileDescriptor |
Definition at line 49 of file general/FileDescriptor.
|
|
Closes the file.
|
|
|
Closes the file.
|
|
|
Closes the file.
|
|
|
Closes the file.
Definition at line 273 of file general/FileDescriptor. |
|
|
Flushes the file.
|
|
|
Flushes the file.
|
|
|
Flushes the file.
|
|
|
Flushes the file.
Definition at line 299 of file general/FileDescriptor. |
|
|
Test if the file is open for I/O operations.
|
|
|
Test if the file is open for I/O operations.
|
|
|
Test if the file is open for I/O operations.
|
|
|
Test if the file is open for I/O operations.
Definition at line 179 of file general/FileDescriptor. |
|
|||||||||||||||
|
Opens the given file with the appropriate flags.
|
|
|||||||||||||||
|
Opens the given file with the appropriate flags.
|
|
|||||||||||||||
|
Opens the given file with the appropriate flags.
|
|
|||||||||||||||
|
Opens the given file with the appropriate flags.
Definition at line 185 of file general/FileDescriptor. |
|
|||||||||||||||
|
Read upto max chars from the file.
|
|
|||||||||||||||
|
Read upto max chars from the file.
|
|
|||||||||||||||
|
Read upto max chars from the file.
|
|
|||||||||||||||
|
Read upto max chars from the file.
Definition at line 291 of file general/FileDescriptor. |
|
|||||||||||||||
|
Write at most len characters to the file.
|
|
|||||||||||||||
|
Write at most len characters to the file.
|
|
|||||||||||||||
|
Write at most len characters to the file.
|
|
|||||||||||||||
|
Write at most len characters to the file.
Definition at line 282 of file general/FileDescriptor. |
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001