OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Member Functions | Private Member Functions | Private Attributes | List of all members
BinaryFile Class Reference

#include <binary.h>

Inheritance diagram for BinaryFile:
[legend]
Collaboration diagram for BinaryFile:
[legend]

Public Member Functions

 BinaryFile (std::string f="")
 
virtual ~BinaryFile ()
 
int open (std::string f="")
 
virtual long long tell ()
 
virtual void seek (long long pos=0)
 
virtual bool eof ()
 
- Public Member Functions inherited from BinaryReader
virtual ~BinaryReader ()
 
virtual int8_t read8 ()
 
virtual uint8_t readU8 ()
 
virtual int16_t read16 ()
 
virtual uint16_t readU16 ()
 
virtual int32_t read32 ()
 
virtual uint32_t readU32 ()
 
virtual int64_t read64 ()
 
virtual uint64_t readU64 ()
 
virtual float readFloat ()
 

Private Member Functions

virtual void read (char *d, int c)
 

Private Attributes

std::ifstream file
 

Detailed Description

Definition at line 40 of file binary.h.

Constructor & Destructor Documentation

BinaryFile::BinaryFile ( std::string  f = "")

Definition at line 103 of file binary.cpp.

BinaryFile::~BinaryFile ( )
virtual

Definition at line 107 of file binary.cpp.

Member Function Documentation

int BinaryFile::open ( std::string  f = "")

Definition at line 112 of file binary.cpp.

long long BinaryFile::tell ( )
virtual

Implements BinaryReader.

Definition at line 123 of file binary.cpp.

void BinaryFile::seek ( long long  pos = 0)
virtual

Implements BinaryReader.

Definition at line 128 of file binary.cpp.

bool BinaryFile::eof ( )
virtual

Implements BinaryReader.

Definition at line 133 of file binary.cpp.

void BinaryFile::read ( char *  d,
int  c 
)
privatevirtual

Implements BinaryReader.

Definition at line 138 of file binary.cpp.

Member Data Documentation

std::ifstream BinaryFile::file
private

Definition at line 54 of file binary.h.


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