Public Member Functions
ecl::Converter< char *, unsigned int > Class Template Reference

Fast conversion to text format with character strings. More...

#include <char_strings.hpp>

Inheritance diagram for ecl::Converter< char *, unsigned int >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Converter (char *begin, char *end)
 Converter (int buffer_size=250) ecl_debug_throw_decl(StandardException)
char * operator() (const unsigned int &input)
virtual ~Converter ()

Detailed Description

template<>
class ecl::Converter< char *, unsigned int >

Fast conversion to text format with character strings.

Provides a fast conversion to text using character strings. This implementation is based on a technique similarly used in the stlsoft libraries.

This class uses a character buffer for the character strings that it generates. Ensure your converter does not go out of scope while using the character strings otherwise your character strings will end up pointing at rubbish.

See also:
Converter

Definition at line 418 of file char_strings.hpp.


Constructor & Destructor Documentation

ecl::Converter< char *, unsigned int >::Converter ( char *  begin,
char *  end 
) [inline]

Constructor that initialises with an external buffer.

Parameters:
begin: character pointer that points to the start of the external buffer.
end: character pointer that points to the end of the external buffer.

Reimplemented in ecl::Converter< char *, void >.

Definition at line 428 of file char_strings.hpp.

ecl::Converter< char *, unsigned int >::Converter ( int  buffer_size = 250) [inline]

Constructor that initialises with an internal buffer.

Parameters:
buffer_size: size of the buffer to create - if not supplied it initialises a buffer of size 250.
Exceptions:
StandardException: throws if it failed to allocate memory for the internal buffer [debug mode only].

Reimplemented in ecl::Converter< char *, void >.

Definition at line 434 of file char_strings.hpp.

virtual ecl::Converter< char *, unsigned int >::~Converter ( ) [inline, virtual]

Reimplemented in ecl::Converter< char *, void >.

Definition at line 436 of file char_strings.hpp.


Member Function Documentation

char* ecl::Converter< char *, unsigned int >::operator() ( const unsigned int &  input) [inline]

Converts an unsigned int to a char string held in the converter's buffer.

Parameters:
input: input value to be converted.
Returns:
char* : output text string.

Definition at line 446 of file char_strings.hpp.


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


ecl_converters
Author(s): Daniel Stonier
autogenerated on Sun Oct 5 2014 23:35:24