Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
tcStringTokenizer Class Reference

#include <StringTokenizer.h>

Collaboration diagram for tcStringTokenizer:

Public Member Functions

 tcStringTokenizer (std::string ahToTokenize, char ahDelimeter=' ')
 
bool hasNext ()
 
std::string next ()
 
bool nextIntHex (int32 *apRet)
 
bool nextUIntHex (uint32 *apRet)
 
bool nextInt (int32 *apRet)
 
bool nextUnsigned (uint32 *apRet)
 
bool nextDouble (double *apRet)
 
bool nextFloat (float *apRet)
 
bool nextBool (bool *apRet)
 

Constructor & Destructor Documentation

◆ tcStringTokenizer()

tcStringTokenizer::tcStringTokenizer ( std::string  ahToTokenize,
char  ahDelimeter = ' ' 
)

Member Function Documentation

◆ hasNext()

bool tcStringTokenizer::hasNext ( )

Tests if there are tokens remaining.

Returns
true if there are tokens remaining; false otherwise

◆ next()

std::string tcStringTokenizer::next ( )

Returns the next token as a std::string.

Returns
the next token.

◆ nextBool()

bool tcStringTokenizer::nextBool ( bool *  apRet)

Converts the next token to a bool. a 'true' token starts with [1yYtT]

Parameters
pointerto the return location
Returns
true if the next token was able to be converted into an bool; false otherwise

◆ nextDouble()

bool tcStringTokenizer::nextDouble ( double *  apRet)

Converts the next token to a double.

Parameters
pointerto the return location
Returns
true if the next token was able to be converted into a double; false otherwise

◆ nextFloat()

bool tcStringTokenizer::nextFloat ( float *  apRet)

Converts the next token to a float.

Parameters
pointerto the return location
Returns
true if the next token was able to be converted into a float; false otherwise

◆ nextInt()

bool tcStringTokenizer::nextInt ( int32 apRet)

Converts the next token to an int.

Parameters
pointerto the return location
Returns
true if the next token was able to be converted into an int; false otherwise

◆ nextIntHex()

bool tcStringTokenizer::nextIntHex ( int32 apRet)

Converts the next token into an int interpretting it as hex

Parameters
pointerto the return location
Returns
true if the next token was able to be converted into an int; false otherwise

◆ nextUIntHex()

bool tcStringTokenizer::nextUIntHex ( uint32 apRet)

Converts the next token into an unsigned int interpretting it as hex

Parameters
pointerto the return location
Returns
true if the next token was able to be converted into an int; false otherwise

◆ nextUnsigned()

bool tcStringTokenizer::nextUnsigned ( uint32 apRet)

Converts the next token to an unsigned int.

Parameters
pointerto the return location
Returns
true if the next token was able to be converted into an unsigned int; false otherwise

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