K3dReaderFile Class Reference

#include <K3dReadFile.h>

Inheritance diagram for K3dReaderFile:

K3dFile List of all members.

Public Member Functions

 K3dReaderFile ()
 K3dReaderFile (const std::string &_rFileName)
bool Open (const std::string &_rFileName)
 Open file.
int Read (char *_strBuf, size_t _tLen)
 Read file.
int Read (std::string &_rStr)
 Read string.
int Read (char &_rcVal)
 Read char.
int Read (unsigned char &_rucVal)
 Read unsigned char.
int Read (short &_rsVal)
 Read short.
int Read (unsigned short &_rusVal)
 Read unsigned short.
int Read (long &_rlVal)
 Read long.
int Read (unsigned long &_rulVal)
 Read unsigned long.
int Read (size_t &_tVal)
 Read short.
int Read (float &_rfVal)
 Read float.
int Read (double &_rdVal)
 Read double.

Detailed Description

Definition at line 38 of file K3dReadFile.h.


Constructor & Destructor Documentation

K3dReaderFile::K3dReaderFile (  )  [inline]

Definition at line 41 of file K3dReadFile.h.

K3dReaderFile::K3dReaderFile ( const std::string &  _rFileName  )  [inline]

Definition at line 42 of file K3dReadFile.h.

References Open().


Member Function Documentation

bool K3dReaderFile::Open ( const std::string &  _rFileName  )  [inline]

Open file.

Parameters:
_rFileName Reference to string filename
Return values:
bool True if file correctly opened

Definition at line 49 of file K3dReadFile.h.

References K3dFile::OpenForRead().

Referenced by K3dReaderFile().

int K3dReaderFile::Read ( char *  _strBuf,
size_t  _tLen 
) [inline]

Read file.

Parameters:
_strBuf String buffer
_tLen File length
Return values:
int Total number of readed items
_strBuf File string

Definition at line 58 of file K3dReadFile.h.

References K3dFile::GetFile(), and K3dFile::Good().

Referenced by Read().

int K3dReaderFile::Read ( std::string &  _rStr  )  [inline]

Read string.

Parameters:
_rStr Reference to string
Return values:
int Total number of readed items

Definition at line 66 of file K3dReadFile.h.

References Read().

int K3dReaderFile::Read ( char &  _rcVal  )  [inline]

Read char.

Parameters:
_rcVal Reference to char
Return values:
int Total number of readed items

Definition at line 77 of file K3dReadFile.h.

References Read().

int K3dReaderFile::Read ( unsigned char &  _rucVal  )  [inline]

Read unsigned char.

Parameters:
_rucVal Reference to unsigned char
Return values:
int Total number of readed items

Definition at line 84 of file K3dReadFile.h.

References Read().

int K3dReaderFile::Read ( short &  _rsVal  )  [inline]

Read short.

Parameters:
_rsVal Reference to short
Return values:
int Total number of readed items

Definition at line 91 of file K3dReadFile.h.

References Read().

int K3dReaderFile::Read ( unsigned short &  _rusVal  )  [inline]

Read unsigned short.

Parameters:
_rusVal Reference to unsigned short
Return values:
int Total number of readed items

Definition at line 98 of file K3dReadFile.h.

References Read().

int K3dReaderFile::Read ( long &  _rlVal  )  [inline]

Read long.

Parameters:
_rlVal Reference to long
Return values:
int Total number of readed items

Definition at line 105 of file K3dReadFile.h.

References Read().

int K3dReaderFile::Read ( unsigned long &  _rulVal  )  [inline]

Read unsigned long.

Parameters:
_rulVal Reference to unsigned long
Return values:
int Total number of readed items

Definition at line 112 of file K3dReadFile.h.

References Read().

int K3dReaderFile::Read ( size_t &  _tVal  )  [inline]

Read short.

Parameters:
_tVal Reference to size_t
Return values:
int Total number of readed items

Definition at line 119 of file K3dReadFile.h.

References Read().

int K3dReaderFile::Read ( float &  _rfVal  )  [inline]

Read float.

Parameters:
_rfVal Reference to float
Return values:
int Total number of readed items

Definition at line 126 of file K3dReadFile.h.

References Read().

int K3dReaderFile::Read ( double &  _rdVal  )  [inline]

Read double.

Parameters:
_rdVal Reference to float
Return values:
int Total number of readed items

Definition at line 133 of file K3dReadFile.h.

References Read().


The documentation for this class was generated from the following file:
Generated on Thu Aug 16 23:53:33 2007 for K3dEngine by  doxygen 1.5.0