Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
filestream Struct Reference
Inheritance diagram for filestream:
stream

Public Types

typedef off_t offset
 

Public Member Functions

 filestream ()
 
 ~filestream () override
 
bool open (const char *name, const char *mode)
 
bool opentemp (const char *name, const char *mode)
 
void close () override
 
bool end () override
 
offset tell () override
 
bool seek (offset pos, int whence) override
 
size_t read (void *buf, size_t len) override
 
size_t write (const void *buf, size_t len) override
 
bool flush () override
 
int getchar () override
 
bool putchar (int c) override
 
bool getline (char *str, size_t len) override
 
bool putstring (const char *str) override
 
size_t printf (const char *fmt,...) override
 
virtual offset rawtell ()
 
virtual offset size ()
 
virtual offset rawsize ()
 
virtual bool putline (const char *str)
 
virtual size_t virtual uint getcrc ()
 
template<class T >
size_t put (const T *v, size_t n)
 
template<class T >
bool put (T n)
 
template<class T >
bool putlil (T n)
 
template<class T >
bool putbig (T n)
 
template<class T >
size_t get (T *v, size_t n)
 
template<class T >
get ()
 
template<class T >
getlil ()
 
template<class T >
getbig ()
 

Public Attributes

FILE * file
 

Member Typedef Documentation

typedef off_t stream::offset
inherited

Constructor & Destructor Documentation

filestream::filestream ( )
inline
filestream::~filestream ( )
inlineoverride

References close().

Member Function Documentation

void filestream::close ( )
inlineoverridevirtual

Implements stream.

References file.

Referenced by ~filestream().

bool filestream::end ( )
inlineoverridevirtual

Implements stream.

References file.

bool filestream::flush ( )
inlineoverridevirtual

Reimplemented from stream.

References file.

template<class T >
size_t stream::get ( T *  v,
size_t  n 
)
inlineinherited

References stream::read().

Referenced by streambuf< T >::get().

template<class T >
T stream::get ( )
inlineinherited

References stream::read().

template<class T >
T stream::getbig ( )
inlineinherited

References bigswap().

int filestream::getchar ( )
inlineoverridevirtual

Reimplemented from stream.

References file.

virtual size_t virtual uint stream::getcrc ( )
inlinevirtualinherited

Reimplemented in gzstream.

Referenced by load_world(), and loadents().

template<class T >
T stream::getlil ( )
inlineinherited
bool filestream::getline ( char *  str,
size_t  len 
)
inlineoverridevirtual

Reimplemented from stream.

References file.

bool filestream::open ( const char *  name,
const char *  mode 
)
inline

References file.

Referenced by openrawfile().

bool filestream::opentemp ( const char *  name,
const char *  mode 
)
inline

References file.

Referenced by opentempfile().

size_t filestream::printf ( const char *  fmt,
  ... 
)
inlineoverridevirtual

Reimplemented from stream.

References file, inexor::rpc::max(), and result().

template<class T >
size_t stream::put ( const T *  v,
size_t  n 
)
inlineinherited

References stream::write().

Referenced by streambuf< T >::put().

template<class T >
bool stream::put ( n)
inlineinherited

References stream::write().

template<class T >
bool stream::putbig ( n)
inlineinherited

References bigswap().

Referenced by savepng(), and writepngchunk().

bool filestream::putchar ( int  c)
inlineoverridevirtual

Reimplemented from stream.

References file.

template<class T >
bool stream::putlil ( n)
inlineinherited
virtual bool stream::putline ( const char *  str)
inlinevirtualinherited
bool filestream::putstring ( const char *  str)
inlineoverridevirtual

Reimplemented from stream.

References file.

virtual offset stream::rawsize ( )
inlinevirtualinherited

Reimplemented in gzstream.

References stream::size().

virtual offset stream::rawtell ( )
inlinevirtualinherited

Reimplemented in gzstream.

References stream::tell().

Referenced by server::writedemo().

size_t filestream::read ( void buf,
size_t  len 
)
inlineoverridevirtual

Reimplemented from stream.

References file.

bool filestream::seek ( offset  pos,
int  whence 
)
inlineoverridevirtual

Reimplemented from stream.

References file.

stream::offset stream::size ( )
virtualinherited
offset filestream::tell ( )
inlineoverridevirtual

Reimplemented from stream.

References file.

size_t filestream::write ( const void buf,
size_t  len 
)
inlineoverridevirtual

Reimplemented from stream.

References file.

Member Data Documentation

FILE* filestream::file

The documentation for this struct was generated from the following file: