ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <stdiostream.h>

Inheritance diagram for StdioStream:
Collaboration diagram for StdioStream:

List of all members.

Public Member Functions

 StdioStream (void *handle)
virtual ~StdioStream ()
virtual bool err () const override
virtual void clearErr () override
virtual bool eos () const override
virtual uint32 write (const void *dataPtr, uint32 dataSize) override
virtual bool flush () override
virtual int32 pos () const override
virtual int32 size () const override
virtual bool seek (int32 offs, int whence=SEEK_SET) override
virtual uint32 read (void *dataPtr, uint32 dataSize) override

Static Public Member Functions

static StdioStreammakeFromPath (const Common::String &path, bool writeMode)
 Given a path, invokes fopen on that path and wrap the result in a StdioStream instance.

Protected Attributes

void * _handle
 File handle to the actual file.

Detailed Description

Definition at line 31 of file stdiostream.h.


Constructor & Destructor Documentation

StdioStream::StdioStream ( void *  handle  ) 

Definition at line 33 of file stdiostream.cpp.

StdioStream::~StdioStream (  )  [virtual]

Definition at line 37 of file stdiostream.cpp.


Member Function Documentation

void StdioStream::clearErr (  )  [override, virtual]

Definition at line 45 of file stdiostream.cpp.

bool StdioStream::eos (  )  const [override, virtual]

Definition at line 49 of file stdiostream.cpp.

bool StdioStream::err (  )  const [override, virtual]

Definition at line 41 of file stdiostream.cpp.

bool StdioStream::flush (  )  [override, virtual]

Definition at line 78 of file stdiostream.cpp.

StdioStream * StdioStream::makeFromPath ( const Common::String path,
bool  writeMode 
) [static]

Given a path, invokes fopen on that path and wrap the result in a StdioStream instance.

Definition at line 82 of file stdiostream.cpp.

int32 StdioStream::pos (  )  const [override, virtual]

Definition at line 53 of file stdiostream.cpp.

uint32 StdioStream::read ( void *  dataPtr,
uint32  dataSize 
) [override, virtual]

Definition at line 70 of file stdiostream.cpp.

bool StdioStream::seek ( int32  offs,
int  whence = SEEK_SET 
) [override, virtual]

Definition at line 66 of file stdiostream.cpp.

int32 StdioStream::size (  )  const [override, virtual]

Definition at line 57 of file stdiostream.cpp.

uint32 StdioStream::write ( const void *  dataPtr,
uint32  dataSize 
) [override, virtual]

Definition at line 74 of file stdiostream.cpp.


Member Data Documentation

void* StdioStream::_handle [protected]

File handle to the actual file.

Definition at line 34 of file stdiostream.h.


The documentation for this class was generated from the following files:


Generated on Sat Sep 14 2019 05:03:20 for ResidualVM by doxygen 1.7.1
curved edge   curved edge