vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vrecko::BufferedFileWrite Class Reference

#include <BufFile.h>

Public Member Functions

 BufferedFileWrite (void)
 
 ~BufferedFileWrite (void)
 
bool init (TCHAR *lpFileName)
 
HANDLE getHandle ()
 
bool write (LPVOID lpBuffer, DWORD dwSize)
 
bool writeByte (BYTE bData)
 
bool writeBool (bool bData)
 
bool writeWORD (WORD wData)
 
bool writeLONG (LONG lData)
 
bool writeDWORD (DWORD dwData)
 
bool writeFloat (float fData)
 
bool writeVec3f (osg::Vec3f *v)
 
bool writeInt (int iData)
 
bool writePOINT (POINT *pnt)
 
bool writeInt64 (__int64 iData)
 
bool writeRECT (RECT *rData)
 
bool writeStr (PSTR pData)
 
bool writeFormattedString (TCHAR *pFormat,...)
 
bool flush (void)
 
bool close (void)
 

Protected Attributes

HANDLE hFile
 
DynamicArray< BYTE > buffer
 
DWORD dwBufMaxSize
 

Constructor & Destructor Documentation

vrecko::BufferedFileWrite::BufferedFileWrite ( void  )
vrecko::BufferedFileWrite::~BufferedFileWrite ( void  )

Member Function Documentation

bool vrecko::BufferedFileWrite::close ( void  )
bool vrecko::BufferedFileWrite::flush ( void  )
HANDLE vrecko::BufferedFileWrite::getHandle ( )
inline
bool vrecko::BufferedFileWrite::init ( TCHAR *  lpFileName)
bool vrecko::BufferedFileWrite::write ( LPVOID  lpBuffer,
DWORD  dwSize 
)
inline
bool vrecko::BufferedFileWrite::writeBool ( bool  bData)
inline
bool vrecko::BufferedFileWrite::writeByte ( BYTE  bData)
inline
bool vrecko::BufferedFileWrite::writeDWORD ( DWORD  dwData)
inline
bool vrecko::BufferedFileWrite::writeFloat ( float  fData)
inline
bool vrecko::BufferedFileWrite::writeFormattedString ( TCHAR *  pFormat,
  ... 
)
bool vrecko::BufferedFileWrite::writeInt ( int  iData)
inline
bool vrecko::BufferedFileWrite::writeInt64 ( __int64  iData)
inline
bool vrecko::BufferedFileWrite::writeLONG ( LONG  lData)
inline
bool vrecko::BufferedFileWrite::writePOINT ( POINT *  pnt)
inline
bool vrecko::BufferedFileWrite::writeRECT ( RECT *  rData)
inline
bool vrecko::BufferedFileWrite::writeStr ( PSTR  pData)
inline
bool vrecko::BufferedFileWrite::writeVec3f ( osg::Vec3f *  v)
inline
bool vrecko::BufferedFileWrite::writeWORD ( WORD  wData)
inline

Member Data Documentation

DynamicArray<BYTE> vrecko::BufferedFileWrite::buffer
protected
DWORD vrecko::BufferedFileWrite::dwBufMaxSize
protected
HANDLE vrecko::BufferedFileWrite::hFile
protected

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