Peekerpoke  0.1 beta
Util Class Reference

#include <Util.h>

Static Public Member Functions

static CarnewCar (std::string s)
 always to construct a new car with its name More...
 
static CargetCar ()
 the only way to get access to the car More...
 
static std::string int2string (int i)
 convert int to string More...
 
static int extractMapResult (std::string s)
 Extract the map status message from a string. More...
 
static point extractMapLocation (std::string s)
 Extract the map location message from a string. More...
 

Static Private Attributes

static Carcar = 0
 

Member Function Documentation

point Util::extractMapLocation ( std::string  s)
static

Extract the map location message from a string.

Parameters
sinput string
Returns
the map location
Note
input string must statistify "1/74/201623848.112/Car2"
int Util::extractMapResult ( std::string  s)
static

Extract the map status message from a string.

Parameters
sinput string
Returns
the map status
Note
input string must statistify "1/74/201623848.112/Car2"
Car & Util::getCar ( )
static

the only way to get access to the car

If car pointer is NULL, new one

Returns
the reference of the car
string Util::int2string ( int  i)
static

convert int to string

Parameters
iint type
Returns
string result
Car & Util::newCar ( std::string  s)
static

always to construct a new car with its name

Parameters
sthe car's name
Returns
the reference of the new car

Member Data Documentation

Car * Util::car = 0
staticprivate

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