libwolfram20
|
Wolfram API result. More...
#include <WAResult.h>
Public Member Functions | |
WAResult (const WAResult &old) | |
Copy constructor. More... | |
WAResult (rapidxml::xml_node<> *query) | |
It extracts the data from query and save it into the object's arguments. More... | |
~WAResult () | |
Destructor. More... | |
std::vector< WAPod > | getPods () |
Returns the getted array of Pods of the previous query. More... | |
bool | getPod (const char *title, WAPod *pod) |
Returns a Pod matching the title . More... | |
unsigned int | getTimedoutNumber () |
It returns the number of elements that were timedout. More... | |
std::vector< std::string > | getTimedout () |
It returns the elements that were timedout. More... | |
bool | isError () |
It checks if the results contains valid data. More... | |
WAError * | getError () |
It provides information about what happened. More... | |
Private Member Functions | |
void | parse (rapidxml::xml_node<> *query) |
Parsing the input query . More... | |
Static Private Member Functions | |
static std::vector< std::string > | splitTimedout (const std::string &s) |
It stores the pods that are timedout into a vector. More... | |
Private Attributes | |
bool | _is_error |
The input could be successfully understood or a serious processing error occurred. | |
WAError * | _error |
Information about the given error. | |
std::string | _dataTypes |
Categories and types of data represented in the results. | |
std::string | _version |
The version specification of the API on the server that produced this result. | |
Timings | _timings |
Time in seconds required to parse the input and generate the output. | |
std::vector< std::string > | _timedout |
Number of pods that are missing because they timed out. | |
std::string | _try_again |
If _timedout > 0 this will contain an URL to perform the next search. | |
std::vector< WAPod > | _pods |
All the results of the query. | |
Wolfram API result.
It contains all the Pods. More information on Wolfram documentation.