K3dWriterFile Class Reference

#include <K3dWriteFile.h>

Inheritance diagram for K3dWriterFile:

K3dFile List of all members.

Public Member Functions

 K3dWriterFile ()
 K3dWriterFile (const std::string &_rFileName)
 K3dWriterFile (const std::string &_rFileName, bool _bAppend)
bool Open (const std::string &_rFileName)
 Open file for writing.
bool Open (const std::string &_rFileName, bool _bAppend)
 Open file for writing.
int Write (const char *_strBuf, size_t _tLen)
 Open file for writing.
int Write (const std::string &_str)
 Write string.
int Write (char _cVal)
 Write char.
int Write (unsigned char _ucVal)
 Write unsigned char.
int Write (short _sVal)
 Write short.
int Write (unsigned short _usVal)
 Write unsigned short.
int Write (long _lVal)
 Write long.
int Write (unsigned long _ulVal)
 Write unsigned.
int Write (size_t _tVal)
 Write size_t.
int Write (float _fVal)
 Write float.
int Write (double _dVal)
 Write double.

Detailed Description

Definition at line 39 of file K3dWriteFile.h.


Constructor & Destructor Documentation

K3dWriterFile::K3dWriterFile (  )  [inline]

Definition at line 42 of file K3dWriteFile.h.

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

Definition at line 43 of file K3dWriteFile.h.

References Open().

K3dWriterFile::K3dWriterFile ( const std::string &  _rFileName,
bool  _bAppend 
) [inline]

Definition at line 47 of file K3dWriteFile.h.

References Open().


Member Function Documentation

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

Open file for writing.

Parameters:
_rFileName Reference to file

Definition at line 53 of file K3dWriteFile.h.

References K3dFile::OpenForWriteTrunc().

Referenced by K3dWriterFile().

bool K3dWriterFile::Open ( const std::string &  _rFileName,
bool  _bAppend 
) [inline]

Open file for writing.

Parameters:
_rFileName Reference to file
_bAppend Open for append write?

Definition at line 60 of file K3dWriteFile.h.

References K3dFile::OpenForWriteAppend(), and K3dFile::OpenForWriteTrunc().

int K3dWriterFile::Write ( const char *  _strBuf,
size_t  _tLen 
) [inline]

Open file for writing.

Parameters:
_strBuf String buffer
_tLen Total number of writed items
Return values:
_strBuf File string

Definition at line 75 of file K3dWriteFile.h.

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

Referenced by Write().

int K3dWriterFile::Write ( const std::string &  _str  )  [inline]

Write string.

Return values:
int Total number of writed items

Definition at line 82 of file K3dWriteFile.h.

References Write().

int K3dWriterFile::Write ( char  _cVal  )  [inline]

Write char.

Parameters:
_cVal Char value
Return values:
int Total number of writed items

Definition at line 91 of file K3dWriteFile.h.

References Write().

int K3dWriterFile::Write ( unsigned char  _ucVal  )  [inline]

Write unsigned char.

Parameters:
_ucVal Unsigned Char value
Return values:
int Total number of writed items

Definition at line 98 of file K3dWriteFile.h.

References Write().

int K3dWriterFile::Write ( short  _sVal  )  [inline]

Write short.

Parameters:
_sVal Short value
Return values:
int Total number of writed items

Definition at line 105 of file K3dWriteFile.h.

References Write().

int K3dWriterFile::Write ( unsigned short  _usVal  )  [inline]

Write unsigned short.

Parameters:
_usVal unsigned short value
Return values:
int Total number of writed items

Definition at line 112 of file K3dWriteFile.h.

References Write().

int K3dWriterFile::Write ( long  _lVal  )  [inline]

Write long.

Parameters:
_lVal long value
Return values:
int Total number of writed items

Definition at line 119 of file K3dWriteFile.h.

References Write().

int K3dWriterFile::Write ( unsigned long  _ulVal  )  [inline]

Write unsigned.

Parameters:
_ulVal unsigned long value
Return values:
int Total number of writed items

Definition at line 126 of file K3dWriteFile.h.

References Write().

int K3dWriterFile::Write ( size_t  _tVal  )  [inline]

Write size_t.

Parameters:
_tVal size_t value
Return values:
int Total number of writed items

Definition at line 133 of file K3dWriteFile.h.

References Write().

int K3dWriterFile::Write ( float  _fVal  )  [inline]

Write float.

Parameters:
_fVal size_t value
Return values:
int Total number of writed items

Definition at line 140 of file K3dWriteFile.h.

References Write().

int K3dWriterFile::Write ( double  _dVal  )  [inline]

Write double.

Parameters:
_dVal double value
Return values:
int Total number of writed items

Definition at line 147 of file K3dWriteFile.h.

References Write().


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