OpenMW
Classes | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
Nif::NIFStream Class Reference

#include <nifstream.hpp>

List of all members.

Classes

struct  GetHandler

Public Member Functions

 NIFStream (NIFFile *file, Ogre::DataStreamPtr inp)
template<typename T >
void read (NIFStream *nif, T &Value)
void skip (size_t size)
void read (void *data, size_t size)
char getChar ()
short getShort ()
unsigned short getUShort ()
int getInt ()
int getUInt ()
float getFloat ()
Ogre::Vector2 getVector2 ()
Ogre::Vector3 getVector3 ()
Ogre::Vector4 getVector4 ()
Ogre::Matrix3 getMatrix3 ()
Ogre::Quaternion getQuaternion ()
Transformation getTrafo ()
std::string getString (size_t length)
std::string getString ()
void getShorts (std::vector< short > &vec, size_t size)
void getFloats (std::vector< float > &vec, size_t size)
void getVector2s (std::vector< Ogre::Vector2 > &vec, size_t size)
void getVector3s (std::vector< Ogre::Vector3 > &vec, size_t size)
void getVector4s (std::vector< Ogre::Vector4 > &vec, size_t size)
void getQuaternions (std::vector< Ogre::Quaternion > &quat, size_t size)

Public Attributes

NIFFile *const file

Private Member Functions

uint8_t read_byte ()
uint16_t read_le16 ()
uint32_t read_le32 ()
float read_le32f ()

Private Attributes

Ogre::DataStreamPtr inp
 Input stream.

Constructor & Destructor Documentation

Nif::NIFStream::NIFStream ( NIFFile file,
Ogre::DataStreamPtr  inp 
) [inline]

Member Function Documentation

char Nif::NIFStream::getChar ( ) [inline]
float Nif::NIFStream::getFloat ( ) [inline]
void Nif::NIFStream::getFloats ( std::vector< float > &  vec,
size_t  size 
) [inline]
int Nif::NIFStream::getInt ( ) [inline]
Ogre::Matrix3 Nif::NIFStream::getMatrix3 ( ) [inline]
Ogre::Quaternion Nif::NIFStream::getQuaternion ( ) [inline]
void Nif::NIFStream::getQuaternions ( std::vector< Ogre::Quaternion > &  quat,
size_t  size 
) [inline]
short Nif::NIFStream::getShort ( ) [inline]
void Nif::NIFStream::getShorts ( std::vector< short > &  vec,
size_t  size 
) [inline]
std::string Nif::NIFStream::getString ( size_t  length) [inline]
std::string Nif::NIFStream::getString ( ) [inline]
int Nif::NIFStream::getUInt ( ) [inline]
unsigned short Nif::NIFStream::getUShort ( ) [inline]
Ogre::Vector2 Nif::NIFStream::getVector2 ( ) [inline]
void Nif::NIFStream::getVector2s ( std::vector< Ogre::Vector2 > &  vec,
size_t  size 
) [inline]
Ogre::Vector3 Nif::NIFStream::getVector3 ( ) [inline]
void Nif::NIFStream::getVector3s ( std::vector< Ogre::Vector3 > &  vec,
size_t  size 
) [inline]
Ogre::Vector4 Nif::NIFStream::getVector4 ( ) [inline]
void Nif::NIFStream::getVector4s ( std::vector< Ogre::Vector4 > &  vec,
size_t  size 
) [inline]
template<typename T >
void Nif::NIFStream::read ( NIFStream nif,
T &  Value 
) [inline]
void Nif::NIFStream::read ( void *  data,
size_t  size 
) [inline]
uint8_t Nif::NIFStream::read_byte ( ) [inline, private]
uint16_t Nif::NIFStream::read_le16 ( ) [inline, private]
uint32_t Nif::NIFStream::read_le32 ( ) [inline, private]
float Nif::NIFStream::read_le32f ( ) [inline, private]
void Nif::NIFStream::skip ( size_t  size) [inline]

Member Data Documentation

Ogre::DataStreamPtr Nif::NIFStream::inp [private]

Input stream.


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