#include <java_file.h>
Inheritance diagram for SimpleFile::
Public Methods | |
SimpleFile () | |
SimpleFile (std::string name, std::string openmode, bool nocreate=false, bool real=false) | |
SimpleFile (const File &file) | |
void | open (std::string name, std::string openmode, bool nocreate=false, bool real=true) |
bool | is_valid () const |
bool | operator! () const |
std::string | get_name () const |
void | seekg (long pos) |
long | tellg () |
void | seekp (long pos) |
long | tellp () |
int | eof () |
void | operator= (const SimpleFile &file) |
void | flush () |
void | put (char c) |
void | write (std::string s) |
void | write (std::string s, std::streamsize n) |
void | get (char &c) |
void | read (char *ptr, std::streamsize n) |
void | clear () |
void | trunc () |
truncate the file. More... | |
bool | append (SimpleFile other) |
std::string | getline () |
File | get_file () const |
Private Methods | |
std::ios_base::openmode | get_openmode (std::string mode) |
|
|
|
|
|
|
|
|
|
Reimplemented from File. |
|
Reimplemented from File. |
|
Reimplemented from File. |
|
Reimplemented from File. |
|
|
|
if the file is not valid this is the only function, that can be called. It returns the name of the current stream, or if there is no stream, the file is not valid, it returns the name of the file opened with open() or the constructor Reimplemented from File. |
|
|
|
|
|
Reimplemented from File. |
|
|
|
Reimplemented from File. |
|
|
|
Reimplemented from File. |
|
Reimplemented from File. |
|
Reimplemented from File. |
|
Reimplemented from File. |
|
Reimplemented from File. |
|
Reimplemented from File. |
|
truncate the file.
Reimplemented from File. |
|
Reimplemented from File. |
|
Reimplemented from File. |