ddc
Public Member Functions | Public Attributes | List of all members
TxCurl Class Reference

TxCurl: abstract term expander using libcurl. More...

#include <TermExpander.h>

Inheritance diagram for TxCurl:
Inheritance graph
[legend]
Collaboration diagram for TxCurl:
Collaboration graph
[legend]

Public Member Functions

 TxCurl (const string &cls=string("Curl"), const string &label=string("Curl"), const string &param=string(""))
 default constructor; no implicit compilation More...
 
virtual ~TxCurl (void)
 Destructor frees m_Curl if non-NULL. More...
 
virtual CTermExpanderclone (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 &param)
 Full constructor (abstract base classes only) More...
 
 CTermExpander (const string &label=string("NoLabel"), const string &param=string(""))
 Default constructor, to be overridden by subclasses. More...
 
virtual CTermExpandermapClone (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...
 

Detailed Description

TxCurl: abstract term expander using libcurl.

Constructor & Destructor Documentation

◆ TxCurl()

TxCurl::TxCurl ( const string &  cls = string("Curl"),
const string &  label = string("Curl"),
const string &  param = string("") 
)
inline

default constructor; no implicit compilation

◆ ~TxCurl()

virtual TxCurl::~TxCurl ( void  )
inlinevirtual

Destructor frees m_Curl if non-NULL.

References CTermExpander::clone(), and CTermExpander::compile().

Here is the call graph for this function:

Member Function Documentation

◆ clone()

CTermExpander * TxCurl::clone ( map< CTermExpander *, CTermExpander *> &  xlate) const
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.

Here is the call graph for this function:

◆ compile()

void TxCurl::compile ( void  )
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().

Here is the caller graph for this function:

◆ perform()

virtual bool TxCurl::perform ( void  )
inlinevirtual

Wrapper for m_CCurl.perform_cached()

References CCurl::perform_cached().

Here is the call graph for this function:

Member Data Documentation

◆ m_CCurl

CCurl TxCurl::m_CCurl

CCurl object to use for expansion query.


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