Inheritance diagram for File::stream::

Public Types | |
| enum | Type { FILE_STREAM, MEM_STREAM } |
| < stream type. More... | |
Public Methods | |
| stream (std::string name, std::ios_base::openmode mode, Type type) | |
| virtual | ~stream () |
| bool | is_valid () const |
| bool | operator! () const |
| void | operator++ () |
| increase the line number of the stream. More... | |
| void | operator-- () |
| decrease the line number of the stream. More... | |
| std::iostream & | get_io () |
| returns an iostream pointer. More... | |
| template<class T> void | operator<< (T t) |
| template<class T> void | operator>> (T &t) |
| int | get_refs () const |
| int | add_ref () |
| int | sub_ref () |
| std::string | get_name () const |
| returns the name of the stream. More... | |
| std::ios_base::openmode | get_mode () const |
| void | set_mode (std::ios_base::openmode m) |
| virtual void | trunc ()=0 |
| truncate the file. More... | |
| int | get_line () const |
| void | set_line (int l) |
| void | seekg (long pos) |
| long | tellg () |
| void | seekp (long pos) |
| long | tellp () |
| int | eof () |
| std::ostream & | flush () |
| std::ostream & | put (char c) |
| std::ostream & | write (std::string s) |
| std::ostream & | write (std::string s, std::streamsize n) |
| std::istream & | get (char &c) |
| std::istream & | read (char *ptr, std::streamsize n) |
| void | clear () |
| Type | get_type () |
Protected Attributes | |
| std::string | name |
| bool | valid |
| int | line |
| int | count |
| reference counter. More... | |
| std::iostream * | io |
| std::ios_base::openmode | mode |
| open mode. More... | |
| Type | type |
A base wrapper class for std::iostream's. All functions will be forewarded to the io stream.
|
|
< stream type.
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
returns an iostream pointer.
|
|
|
|
|
|
|
|
|
returns the name of the stream.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
increase the line number of the stream.
|
|
|
decrease the line number of the stream.
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
truncate the file.
Reimplemented in File::file_stream, and File::mem_stream. |
|
||||||||||||
|
|
|
|
|
|
|
reference counter.
|
|
|
|
|
|
|
|
|
open mode.
|
|
|
|
|
|
|
|
|
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001