Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

SimpleFile Class Reference

#include <java_file.h>

Inheritance diagram for SimpleFile::

File List of all members.

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)

Constructor & Destructor Documentation

SimpleFile::SimpleFile (    )  [inline]
 

SimpleFile::SimpleFile (  std::string    name,
std::string    om,
bool    nocreate = false,
bool    real = false
) 
 

SimpleFile::SimpleFile (  const File &    file )  [inline]
 


Member Function Documentation

bool SimpleFile::append (  SimpleFile    other )  [inline]
 

void SimpleFile::clear (    )  [inline]
 

Reimplemented from File.

int SimpleFile::eof (    )  [inline]
 

Reimplemented from File.

void SimpleFile::flush (    )  [inline]
 

Reimplemented from File.

void SimpleFile::get (  char &    c )  [inline]
 

Reimplemented from File.

File SimpleFile::get_file (    )  const [inline]
 

std::string SimpleFile::get_name (    )  const [inline]
 

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.

std::ios_base::openmode SimpleFile::get_openmode (  std::string    mode )  [private]
 

std::string SimpleFile::getline (    ) 
 

bool SimpleFile::is_valid (    )  const [inline]
 

Reimplemented from File.

void SimpleFile::open (  std::string    name,
std::string    openmode,
bool    nocreate = false,
bool    real = true
)  [inline]
 

bool SimpleFile::operator! (    )  const [inline]
 

Reimplemented from File.

void SimpleFile::operator= (  const SimpleFile &    file )  [inline]
 

void SimpleFile::put (  char    c )  [inline]
 

Reimplemented from File.

void SimpleFile::read (  char *    ptr,
std::streamsize    n
)  [inline]
 

Reimplemented from File.

void SimpleFile::seekg (  long    pos )  [inline]
 

Reimplemented from File.

void SimpleFile::seekp (  long    pos )  [inline]
 

Reimplemented from File.

long SimpleFile::tellg (    )  [inline]
 

Reimplemented from File.

long SimpleFile::tellp (    )  [inline]
 

Reimplemented from File.

void SimpleFile::trunc (    )  [inline]
 

truncate the file.

Reimplemented from File.

void SimpleFile::write (  std::string    s,
std::streamsize    n
)  [inline]
 

Reimplemented from File.

void SimpleFile::write (  std::string    s )  [inline]
 

Reimplemented from File.


The documentation for this class was generated from the following files:
Generated on Tue Nov 20 02:19:54 2001 for Leo<HTML> by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001