#include <Parse.h>
Static Public Member Functions | |
static double | parseFirstDouble (char **strMsg) |
static int | parseFirstInt (char **strMsg) |
static char | gotoFirstSpaceOrClosingBracket (char **strMsg) |
static int | gotoFirstOccurenceOf (char c, char **strMsg) |
static char | gotoFirstNonSpace (char **strMsg) |
Definition at line 61 of file Parse.h.
double Parse::parseFirstDouble | ( | char ** | strMsg | ) | [static] |
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.
strMsg | pointer to a character in a string array |
Definition at line 145 of file Parse.cpp.
References parseFirstInt().
Referenced by SenseHandler::analyzeFullStateMessage(), SenseHandler::analyzePlayerTypeMessage(), SenseHandler::analyzeSeeGlobalMessage(), Player::executeStringCommand(), BasicCoach::executeStringCommand(), main(), WorldModel::processLastSeeMessage(), WorldModel::processLastSenseMessage(), and Formations::readFormations().
int Parse::parseFirstInt | ( | char ** | strMsg | ) | [static] |
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.
strMsg | pointer to a character in a string array |
Definition at line 112 of file Parse.cpp.
Referenced by SenseHandler::analyzeChangePlayerTypeMessage(), SenseHandler::analyzeCheckBall(), SenseHandler::analyzeFullStateMessage(), SenseHandler::analyzeHearMessage(), SenseHandler::analyzeInitMessage(), SenseHandler::analyzePlayerMessage(), SenseHandler::analyzePlayerTypeMessage(), SenseHandler::analyzeSeeGlobalMessage(), SenseHandler::analyzeSeeMessage(), SenseHandler::analyzeSenseMessage(), Player::executeStringCommand(), BasicCoach::executeStringCommand(), SoccerTypes::getObjectFromStr(), main(), parseFirstDouble(), WorldModel::processLastSeeMessage(), WorldModel::processLastSenseMessage(), WorldModel::processPlayerMessage(), and Formations::readFormations().
char Parse::gotoFirstSpaceOrClosingBracket | ( | char ** | strMsg | ) | [static] |
This method walks through the string starting at the character where strMsg points to and stops when
strMsg | pointer to a character in a string array |
Definition at line 79 of file Parse.cpp.
Referenced by SoccerTypes::getObjectFromStr().
int Parse::gotoFirstOccurenceOf | ( | char | c, | |
char ** | strMsg | |||
) | [static] |
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..
c | character that is searched for in strMsg. | |
strMsg | pointer to a character in a string array |
Definition at line 92 of file Parse.cpp.
Referenced by SenseHandler::analyzeFullStateMessage(), SenseHandler::analyzeHearMessage(), SenseHandler::analyzeSeeGlobalMessage(), Player::executeStringCommand(), WorldModel::getMaxRangeUnknownPlayer(), SoccerTypes::getObjectFromStr(), WorldModel::processLastSeeMessage(), and WorldModel::processLastSenseMessage().
char Parse::gotoFirstNonSpace | ( | char ** | strMsg | ) | [static] |
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.
strMsg | pointer to a character in a string array |
Definition at line 63 of file Parse.cpp.
Referenced by SenseHandler::analyzeHearMessage(), SenseHandler::analyzePlayerMessage(), Player::executeStringCommand(), and Formations::readFormations().