libmoost
moost::murcl::easy Class Reference

An abstract represenation of the LibCurl easy interface. More...

#include <easy.hpp>

List of all members.

Public Types

typedef boost::shared_ptr< easyptr
 Shared pointer for a murcl_easy instance.

Public Member Functions

 easy ()
 Go make me an easy API object; simples!
template<typename OptionTraits >
void set_option (typename OptionTraits::value_type const &val)
 Set a LibCurl option.
 ~easy ()
 Clean up after ourselves - it's only polite to do so!
void perform () const
 Performs a request as defined by the options that were set.

Private Member Functions

void validate_result (CURLcode const code, std::string const &msg) const

Private Attributes

CURL * handle_
option_stash optstash_

Detailed Description

An abstract represenation of the LibCurl easy interface.

Definition at line 54 of file easy.hpp.


Member Typedef Documentation

typedef boost::shared_ptr<easy> moost::murcl::easy::ptr

Shared pointer for a murcl_easy instance.

The rest of murcl expects an easy::ptr to avoid issues of ownership.

Definition at line 63 of file easy.hpp.


Constructor & Destructor Documentation

Go make me an easy API object; simples!

Definition at line 68 of file easy.hpp.

Here is the call graph for this function:

Clean up after ourselves - it's only polite to do so!

Definition at line 105 of file easy.hpp.


Member Function Documentation

void moost::murcl::easy::perform ( ) const [inline]

Performs a request as defined by the options that were set.

Definition at line 113 of file easy.hpp.

Here is the call graph for this function:

template<typename OptionTraits >
void moost::murcl::easy::set_option ( typename OptionTraits::value_type const &  val) [inline]

Set a LibCurl option.

Parameters:
OptionTraitsThis template parameter defines the option being set
valThe value being set. Its type is defined by OptionTraits::value_type

Definition at line 93 of file easy.hpp.

void moost::murcl::easy::validate_result ( CURLcode const  code,
std::string const &  msg 
) const [inline, private]

Definition at line 122 of file easy.hpp.

Here is the caller graph for this function:


Member Data Documentation

CURL* moost::murcl::easy::handle_ [private]

Definition at line 135 of file easy.hpp.

Definition at line 136 of file easy.hpp.


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