CString.h File Reference

The following functions convert booleans, integers, float and doubles into strings. More...

#include <string>
#include <stdio.h>

Functions

void cStr (string &a_string, const bool &a_value)
 Convert a boolean into a string.
void cStr (string &a_string, const int &a_value)
 Convert an integer into a string.
void cStr (string &a_string, const float &a_value, const unsigned int a_precision=2)
 Convert a float into a string.
void cStr (string &a_string, const double &a_value, const unsigned int a_precision=2)
 Convert a double into a string.


Detailed Description

The following functions convert booleans, integers, float and doubles into strings.


Function Documentation

void cStr ( string &  a_string,
const double &  a_value,
const unsigned int  a_precision 
)

Convert a double into a string.

Convert a double into a string.

Parameters:
a_string Input string.
a_value Input value of type integer.
a_precision Number of digits displayed after the decimal pt.

void cStr ( string &  a_string,
const float &  a_value,
const unsigned int  a_precision 
)

Convert a float into a string.

Convert a float into a string.

Parameters:
a_string Input string.
a_value Input value of type integer.
a_precision Number of digits displayed after the decimal pt.

void cStr ( string &  a_string,
const int &  a_value 
)

Convert an integer into a string.

Convert an integer into a string.

Parameters:
a_string Input string.
a_value Input value of type integer.

void cStr ( string &  a_string,
const bool &  a_value 
)

Convert a boolean into a string.

Convert a boolean into a string.

Parameters:
a_string Input string.
a_value Input value of type boolean.


Generated on Mon Jun 11 09:41:46 2007 for CHAI 3D by  doxygen 1.5.2