libwolfram20

◆ WAResult() [1/2]

WAResult::WAResult ( const WAResult old)

Copy constructor.

Parameters
[in]oldObject to copy
17 {
18 this->_is_error = old._is_error;
19 this->_error = nullptr;
20 if (old._error != nullptr) this->_error = new WAError(*old._error);
21 this->_dataTypes = old._dataTypes;
22 this->_version = old._version;
23 this->_timings = old._timings;
24 this->_timedout = old._timedout;
25 this->_try_again = old._try_again;
26 this->_pods = old._pods;
27}
Wolfram API error element.
Definition: WAError.h:20
std::vector< WAPod > _pods
All the results of the query.
Definition: WAResult.h:62
std::string _dataTypes
Categories and types of data represented in the results.
Definition: WAResult.h:55
std::string _version
The version specification of the API on the server that produced this result.
Definition: WAResult.h:56
bool _is_error
The input could be successfully understood or a serious processing error occurred.
Definition: WAResult.h:52
std::vector< std::string > _timedout
Number of pods that are missing because they timed out.
Definition: WAResult.h:59
std::string _try_again
If _timedout > 0 this will contain an URL to perform the next search.
Definition: WAResult.h:60
Timings _timings
Time in seconds required to parse the input and generate the output.
Definition: WAResult.h:57
WAError * _error
Information about the given error.
Definition: WAResult.h:53