Class CurlExecutor

Inheritance Relationships

Derived Types

Class Documentation

class CurlExecutor

Abstract class for executing commands using curl.

Owns a curl context object for setting parameters before executing commands.

Subclassed by email::CurlEmailReceiver, email::CurlEmailSender

Public Functions

bool init()

Initialize executor.

Returns:

true if successful, false otherwise

bool is_valid() const

Get validity status of the executor.

Parameters:

true – if valid, false otherwise

Protected Functions

explicit CurlExecutor(const struct ConnectionInfo &connection_info, const struct ProtocolInfo &protocol_info, const bool curl_verbose)

Constructor.

Parameters:
  • connection_info – the connection info

  • protocol_info – the protocol info

  • curl_verbose – the curl verbose status

virtual ~CurlExecutor()
virtual bool init_options() = 0

Initialize concrete options.

Inheriting classes should implement this and initialize options specific to them.

Returns:

true if success, false otherwise

Protected Attributes

CurlContext context_