CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

csPrintfFormatter< Twriter, Treader > Class Template Reference
[Utilities]

Templated class for printf()-style string formatting. More...

#include <csutil/formatter.h>

List of all members.

Public Member Functions

 csPrintfFormatter (Treader *reader,...)
 Initialize from a reader and a argument list.
 csPrintfFormatter (Treader *reader, va_list args)
 Initialize from a reader and a argument list.
void Format (Twriter &writer)
 Do the actual formatting.


Detailed Description

template<class Twriter, class Treader>
class csPrintfFormatter< Twriter, Treader >

Templated class for printf()-style string formatting.

Treader provides the format string, Twriter receives the output.

See also:
Notes about string formatting in CrystalSpace

Definition at line 146 of file formatter.h.


Constructor & Destructor Documentation

template<class Twriter, class Treader>
csPrintfFormatter< Twriter, Treader >::csPrintfFormatter Treader *  reader,
va_list  args
[inline]
 

Initialize from a reader and a argument list.

Definition at line 1165 of file formatter.h.

template<class Twriter, class Treader>
csPrintfFormatter< Twriter, Treader >::csPrintfFormatter Treader *  reader,
  ...
[inline]
 

Initialize from a reader and a argument list.

Definition at line 1170 of file formatter.h.


Member Function Documentation

template<class Twriter, class Treader>
void csPrintfFormatter< Twriter, Treader >::Format Twriter &  writer  )  [inline]
 

Do the actual formatting.

Definition at line 1178 of file formatter.h.

References csLog2(), csArray< T, ElementHandler, MemoryAllocator >::Length(), and csArray< T, ElementHandler, MemoryAllocator >::Put().


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.4.4