- Main Page
- Classes
- Files
- Directories

- File List
- File Members

# 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.