1 |
#ifndef __Parse_H__
|
2 |
#define __Parse_H__
|
3 |
|
4 |
class Parse
|
5 |
{
|
6 |
|
7 |
public:
|
8 |
Parse();
|
9 |
~Parse();
|
10 |
|
11 |
float stringToFloat(char *string);
|
12 |
int stringToInt(char *string);
|
13 |
char* intToString(int integer, int *length);
|
14 |
char* intToString(int integer, int *length, bool decimalStatement);
|
15 |
char* floatToString(float source, int *length);
|
16 |
|
17 |
private:
|
18 |
char* floatToStringDecimal(float source, int *length);
|
19 |
char *addIntToDecimal(char *source, int *sourceLength, char *dest, int *destLength, int *totalLength);
|
20 |
};
|
21 |
|
22 |
|
23 |
#endif
|