#include <Parse.h>
Static Public Methods | |
double | parseFirstDouble (char **strMsg) |
int | parseFirstInt (char **strMsg) |
char | gotoFirstSpaceOrClosingBracket (char **strMsg) |
int | gotoFirstOccurenceOf (char c, char **strMsg) |
char | gotoFirstNonSpace (char **strMsg) |
Definition at line 56 of file Parse.h.
|
This method walks through the string starting at the character where strMsg points to and stops when or the end of the string is reached or a non space is reached. strMsg is updated to this new position.
Definition at line 58 of file Parse.C. Referenced by SenseHandler::analyzeHearMessage(), SenseHandler::analyzePlayerMessage(), Player::executeStringCommand(), and Formations::readFormations(). |
|
This method walks through the string starting at the character where strMsg points to and stops when the character c is reached. strMsg is changed after this method is called..
Definition at line 87 of file Parse.C. Referenced by SenseHandler::analyzeHearMessage(), SenseHandler::analyzePlayerMessage(), SenseHandler::analyzeSenseMessage(), Player::executeStringCommand(), and SoccerTypes::getObjectFromStr(). |
|
This method walks through the string starting at the character where strMsg points to and stops when
Definition at line 74 of file Parse.C. Referenced by SoccerTypes::getObjectFromStr(). |
|
This method walks through the string starting at the character where strMsg points to and returns the first double that can be read from this string. Any other characters in front of this integer are discarded. After this method is returned, strMsg points to the first character after the final value of the double. 4e-3, and NaN or nan are also recognized. When input contains NaN or nan, -1000.0 is returned.
Definition at line 140 of file Parse.C. References parseFirstInt(). Referenced by SenseHandler::analyzePlayerMessage(), SenseHandler::analyzePlayerTypeMessage(), SenseHandler::analyzeSeeGlobalMessage(), SenseHandler::analyzeSeeMessage(), SenseHandler::analyzeSenseMessage(), SenseHandler::analyzeServerParamMessage(), Player::executeStringCommand(), main(), and Formations::readFormations(). |
|
This method walks through the string starting at the character where strMsg points to and returns the first integer that can be read from this string. Any other characters in front of this integer are discarded. After this method is returned, strMsg points to the first character after the final value of the integer.
Definition at line 107 of file Parse.C. Referenced by SenseHandler::analyzeChangePlayerTypeMessage(), SenseHandler::analyzeCheckBall(), SenseHandler::analyzeHearMessage(), SenseHandler::analyzeInitMessage(), SenseHandler::analyzePlayerMessage(), SenseHandler::analyzePlayerTypeMessage(), SenseHandler::analyzeSeeGlobalMessage(), SenseHandler::analyzeSeeMessage(), SenseHandler::analyzeSenseMessage(), SenseHandler::analyzeServerParamMessage(), Player::executeStringCommand(), SoccerTypes::getObjectFromStr(), main(), parseFirstDouble(), and Formations::readFormations(). |