ddc
|
TxCurl: abstract term expander using libcurl. More...
#include <TermExpander.h>
Public Member Functions | |
TxCurl (const string &cls=string("Curl"), const string &label=string("Curl"), const string ¶m=string("")) | |
default constructor; no implicit compilation More... | |
virtual | ~TxCurl (void) |
Destructor frees m_Curl if non-NULL. More... | |
virtual CTermExpander * | clone (map< CTermExpander *, CTermExpander *> &xlate) const |
clone constructor calls default constructor More... | |
virtual void | compile (void) |
virtual bool | perform (void) |
Wrapper for m_CCurl.perform_cached() More... | |
Public Member Functions inherited from CTermExpander | |
CTermExpander (const string &cls, const string &label, const string ¶m) | |
Full constructor (abstract base classes only) More... | |
CTermExpander (const string &label=string("NoLabel"), const string ¶m=string("")) | |
Default constructor, to be overridden by subclasses. More... | |
virtual CTermExpander * | mapClone (map< CTermExpander *, CTermExpander *> &xlate) const |
clone constructor, handles sub-object cloning according to xlate map */ More... | |
virtual | ~CTermExpander (void) |
Default destructor. More... | |
virtual string | configString (void) const |
String form of this expander. Default is m_Class + " " + m_Label + " " + m_Param. More... | |
virtual void | expand (const string &src, set< string > &dst) |
Expand a single term term to a set of terms dst. More... | |
virtual void | expand (const set< string > &src, set< string > &dst) |
Expand a set of terms src to a set of terms dst. More... | |
Public Attributes | |
CCurl | m_CCurl |
CCurl object to use for expansion query. More... | |
Public Attributes inherited from CTermExpander | |
string | m_Class |
class name for this expander More... | |
string | m_Label |
unique name for this expander More... | |
string | m_Param |
string argument(s) for this expander (parameters, for stringification) More... | |
TxCurl: abstract term expander using libcurl.
|
inline |
default constructor; no implicit compilation
|
inlinevirtual |
Destructor frees m_Curl if non-NULL.
References CTermExpander::clone(), and CTermExpander::compile().
|
virtual |
clone constructor calls default constructor
Reimplemented from CTermExpander.
Reimplemented in TxCabMap, and TxCab.
References compile(), CTermExpander::m_Class, CTermExpander::m_Label, and CTermExpander::m_Param.
|
virtual |
Initializer sets up m_Curl object based on object parameters Default implementation sets CCurl url(""), timeout(5), noSignal(1), failOnError(1), and setDataCallback()
Reimplemented from CTermExpander.
Reimplemented in TxCab.
Referenced by clone(), and TxCab::compile().
|
inlinevirtual |
Wrapper for m_CCurl.perform_cached()
References CCurl::perform_cached().