libwolfram20
WAQuery Class Reference

API query petition manager. More...

#include <WAQuery.h>

Public Member Functions

 WAQuery ()
 Default constructor. More...
 
std::string toString ()
 Returning a query param string. More...
 
std::string getInput ()
 Returning a search query text. More...
 
void setInput (std::string input)
 Set text for search. More...
 
void addFormat (std::string format)
 Adding a string format. More...
 
void addFormat (const char *format)
 Adding a string format. More...
 
void clearFormats ()
 Clear format config. More...
 
void setTimeout (unsigned int value)
 Sets the timeout. More...
 
void addPodTitle (std::string podtitle)
 Adding a string title. More...
 
void clearPodTitles ()
 Clear title config. More...
 
void addPodIndex (int podindex)
 Adding a string index. More...
 
void clearPodIndexes ()
 Clear index config. More...
 
void addPodScanner (std::string podscanner)
 Adding a string scanner. More...
 
void clearPodScanners ()
 Clear scanner config. More...
 
void addIncludePodID (std::string podid)
 Adding a id config. More...
 
void clearIncludePodIDs ()
 Clear included id config. More...
 
void addExcludePodID (std::string podid)
 Removing an id config. More...
 
void clearExcludePodIDs ()
 Clear excluded id config. More...
 

Private Member Functions

template<typename T >
std::string VectorToStr (const char *prefix, bool individual, std::vector< T > &t)
 Concatenating a vector data to string. More...
 
template<typename T >
std::string VectorToStr (std::string prefix, bool individual, std::vector< T > &t)
 Concatenating a vector data to string. More...
 

Static Private Member Functions

static std::string parseInput (std::string str)
 Given an string it creates a copy but with % code More information here More...
 

Private Attributes

std::string _input
 Text to search.
 
unsigned int _timeout
 The number of seconds to allow Wolfram|Alpha to compute results in the "scan" stage of processing (in general, the most time-consuming stage)
 
std::vector< std::string > _formats
 The desired format for individual result pods It can be "image", "imagemap", "plaintext", "minput", "moutput", "cell", "mathml", "sound" and "wav".
 
std::vector< std::string > _podTitle
 Specifies a pod title to include in the result.
 
std::vector< int > _podIndexes
 Specifies the index(es) of the pod(s) to return.
 
std::vector< std::string > _podScanners
 Specifies that only pods produced by the given scanner should be returned.
 
std::vector< std::string > _includePodIDs
 Specifies a pod ID to include in the result.
 
std::vector< std::string > _excludePodIDs
 Specifies a pod ID to exclude from the result.
 

Static Private Attributes

static std::set< char > _special_char = {'!', '#', '$', '&', '\'', '(', ')', '*', '+', ',', '/', ':', ';', '=', '?', '@', '[', ']'}
 Characters on https://es.wikipedia.org/wiki/C%C3%B3digo_porciento.
 

Detailed Description

API query petition manager.

More information on Wolfram documentation.


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