Athena IO Library
Athena::io::FileReader Class Reference
Inheritance diagram for Athena::io::FileReader:
Inheritance graph
Collaboration diagram for Athena::io::FileReader:
Collaboration graph

Public Member Functions

 FileReader (const std::string &filename)
 
std::string filename () const
 
void setEndian (Endian endian)
 
Endian endian () const
 
bool isBigEndian () const
 
bool isLittleEndian () const
 
void open ()
 
void close ()
 
bool isOpen () const
 
bool save ()
 
void seek (atInt64 pos, SeekOrigin origin=SeekOrigin::Current)
 
void seekAlign32 ()
 
bool atEnd () const
 
atUint64 position () const
 
atUint64 length () const
 
void seekBit (int)
 
bool readBit ()
 
atUint8 readUByte ()
 
atInt8 readByte ()
 
atUint8 * readUBytes (atUint64 len)
 
atInt8 * readBytes (atUint64 len)
 
atUint64 readBytesToBuf (void *buf, atUint64 len)
 
atUint64 readUBytesToBuf (void *buf, atUint64 len)
 
atUint16 readUint16 ()
 
atInt16 readInt16 ()
 
atUint32 readUint32 ()
 
atInt32 readInt32 ()
 
atUint64 readUint64 ()
 
atInt64 readInt64 ()
 
double readDouble ()
 
float readFloat ()
 
bool readBool ()
 
std::string readString (atInt32 maxlen=-1)
 
std::string readUnicode (atInt32 maxlen=-1)
 

Protected Attributes

std::string m_filename
 
FILE * m_fileHandle
 
Endian m_endian
 
atUint8 m_currentByte
 
atUint8 m_bitShift
 
bool m_bitValid
 

Detailed Description

Definition at line 27 of file FileReader.hpp.


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