ucc::StringFormat Class Reference

A string conversion class for use as a base class in objects which can transform themselves into string representations. More...

#include <string.h>


Protected Member Functions

virtual void put (char *buffer, size_t size)=0
 Convert derived object into a string buffer.
virtual strsize_t getStringSize (void)=0
 Get maximum space that might be needed for string representation.

Friends

class string
class string::cstring


Detailed Description

A string conversion class for use as a base class in objects which can transform themselves into string representations.

This can be used together with the string class for automatic conversions.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 1486 of file string.h.


Member Function Documentation

virtual strsize_t ucc::StringFormat::getStringSize ( void   )  [protected, pure virtual]

Get maximum space that might be needed for string representation.

Returns:
space needed.

virtual void ucc::StringFormat::put ( char *  buffer,
size_t  size 
) [protected, pure virtual]

Convert derived object into a string buffer.

This may be a public method in a derived class.

Parameters:
buffer to save representation in.
size of buffer to use.


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

Generated on Wed May 13 09:13:13 2009 for UCommon by  doxygen 1.5.8