tobicore  7.0.0
 All Classes Functions Variables Typedefs Enumerator Friends Groups Pages
TCTools Class Reference

Static tools class. More...

#include <tobicore/TCTools.hpp>

+ Collaboration diagram for TCTools:

Static Public Member Functions

static char * itoa (int value, char *result, int base=10)
 Classic itoa.
static int ftoa (float value, char *result)
 Classic ftoa.
static float atof (const char *value)
 Classic atof.
static std::string itos (int value)
 Classic itos.

Detailed Description

Static tools class.

It provides some static methods to perform data conversion.

Definition at line 30 of file TCTools.hpp.

Member Function Documentation

float TCTools::atof ( const char *  value)
static

Classic atof.

  • value String to convert
    Returns
    Converted float

Definition at line 58 of file TCTools.cpp.

+ Here is the caller graph for this function:

int TCTools::ftoa ( float  value,
char *  result 
)
static

Classic ftoa.

  • value Float to convert
  • result Reference to char array containing the converted float
    Returns
    Reference to char array containing the converted float upon success, NULL otherwise.

Definition at line 54 of file TCTools.cpp.

+ Here is the caller graph for this function:

char * TCTools::itoa ( int  value,
char *  result,
int  base = 10 
)
static

Classic itoa.

  • value Integer to convert
  • result Reference to char array containing the converted integer
  • base Base for conversion
    Returns
    Reference to char array containing the converted integer upon success, NULL otherwise.

Definition at line 30 of file TCTools.cpp.

+ Here is the caller graph for this function:

std::string TCTools::itos ( int  value)
static

Classic itos.

  • Value to convert
    Returns
    Converted integer as string

Definition at line 74 of file TCTools.cpp.

+ Here is the caller graph for this function:


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