Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
curlite::Easy Class Reference

#include <curlite.hpp>

Classes

struct  Pimpl
 

Public Types

typedef std::function< bool(char *, size_t)> SimplifiedDataHandler
 
typedef std::function< bool(curl_off_t, curl_off_t, curl_off_t, curl_off_t)> SimplifiedProgressHandler
 

Public Member Functions

 Easy ()
 
 Easy (Easy &&other)
 
CURLcode error () const
 
std::string errorString () const
 
std::string escape (std::string const &url)
 
bool exceptionMode () const
 
CURL * get () const
 
template<class ValueType >
ValueType getInfo (CURLINFO key, ValueType const &defaultValue=ValueType())
 
template<>
std::string getInfo (CURLINFO key, std::string const &defaultValue)
 
void onChunkBegin (ChunkBeginHandler f=ChunkBeginHandler(), void *data=nullptr)
 
void onChunkEnd (ChunkEndHandler f=ChunkEndHandler(), void *data=nullptr)
 
void onCloseSocket (CloseSocketHandler f=CloseSocketHandler(), void *data=nullptr)
 
void onDebug (DebugHandler f=DebugHandler(), void *data=nullptr)
 
void onFnMatch (FnMatchHandler f=FnMatchHandler(), void *data=nullptr)
 
void onHeader (WriteHandler f=WriteHandler(), void *data=nullptr)
 
void onHeader_ (SimplifiedDataHandler f)
 
void onIoctl (IoctlHandler f=IoctlHandler(), void *data=nullptr)
 
void onOpenSocket (OpenSocketHandler f=OpenSocketHandler(), void *data=nullptr)
 
void onProgress (ProgressHandler f=ProgressHandler(), void *data=nullptr)
 
void onProgress_ (SimplifiedProgressHandler f)
 
void onRead (ReadHandler f=ReadHandler(), void *data=nullptr)
 
void onRead_ (SimplifiedDataHandler f)
 
void onSeek (SeekHandler f=SeekHandler(), void *data=nullptr)
 
void onSockOpt (SockOptHandler f=SockOptHandler(), void *data=nullptr)
 
void onSslContext (SslContextHandler f=SslContextHandler(), void *data=nullptr)
 
void onWrite (WriteHandler f=WriteHandler(), void *data=nullptr)
 
void onWrite_ (SimplifiedDataHandler f)
 
void onXferInfo (XferInfoHandler f=XferInfoHandler(), void *data=nullptr)
 
 operator bool () const
 
bool operator<< (std::istream &stream)
 
Easyoperator= (Easy &&other)
 
bool operator>> (std::ostream &stream)
 
bool pause (int bitmask)
 
bool perform ()
 
size_t recv (char *buffer, size_t bufferSize)
 
CURL * release ()
 
void reset ()
 
size_t send (const char *buffer, size_t bufferSize)
 
template<class ValueType >
bool set (CURLoption opt, ValueType value)
 
bool set (CURLoption key, int value)
 
bool set (CURLoption key, bool value)
 
bool set (CURLoption key, std::string const &value)
 
void setExceptionMode (bool throwExceptions)
 
void setUserData (void *data)
 
std::string unescape (std::string const &url)
 
void * userData () const
 
virtual ~Easy ()
 

Private Member Functions

 Easy (Easy const &other)
 
bool handleError (CURLcode code)
 
void operator= (Easy const &other)
 

Private Attributes

std::unique_ptr< Pimpl_impl
 

Detailed Description

Definition at line 90 of file curlite.hpp.

Member Typedef Documentation

typedef std::function<bool (char *, size_t)> curlite::Easy::SimplifiedDataHandler

Definition at line 102 of file curlite.hpp.

typedef std::function<bool (curl_off_t, curl_off_t, curl_off_t, curl_off_t)> curlite::Easy::SimplifiedProgressHandler

Definition at line 103 of file curlite.hpp.

Constructor & Destructor Documentation

curlite::Easy::Easy ( Easy const &  other)
private
curlite::Easy::Easy ( )

Definition at line 314 of file curlite.cpp.

curlite::Easy::Easy ( Easy &&  other)

Definition at line 327 of file curlite.cpp.

curlite::Easy::~Easy ( )
virtual

Definition at line 332 of file curlite.cpp.

Member Function Documentation

CURLcode curlite::Easy::error ( ) const

Definition at line 446 of file curlite.cpp.

std::string curlite::Easy::errorString ( ) const

Definition at line 451 of file curlite.cpp.

std::string curlite::Easy::escape ( std::string const &  url)

Definition at line 477 of file curlite.cpp.

bool curlite::Easy::exceptionMode ( ) const

Definition at line 441 of file curlite.cpp.

CURL * curlite::Easy::get ( ) const

Definition at line 431 of file curlite.cpp.

template<class ValueType >
ValueType curlite::Easy::getInfo ( CURLINFO  key,
ValueType const &  defaultValue = ValueType() 
)

Definition at line 343 of file curlite.hpp.

template<>
std::string curlite::Easy::getInfo ( CURLINFO  key,
std::string const &  defaultValue 
)
inline

Definition at line 360 of file curlite.hpp.

bool curlite::Easy::handleError ( CURLcode  code)
private

Definition at line 456 of file curlite.cpp.

void curlite::Easy::onChunkBegin ( ChunkBeginHandler  f = ChunkBeginHandler(),
void *  data = nullptr 
)

Definition at line 651 of file curlite.cpp.

void curlite::Easy::onChunkEnd ( ChunkEndHandler  f = ChunkEndHandler(),
void *  data = nullptr 
)

Definition at line 660 of file curlite.cpp.

void curlite::Easy::onCloseSocket ( CloseSocketHandler  f = CloseSocketHandler(),
void *  data = nullptr 
)

Definition at line 633 of file curlite.cpp.

void curlite::Easy::onDebug ( DebugHandler  f = DebugHandler(),
void *  data = nullptr 
)

Definition at line 577 of file curlite.cpp.

void curlite::Easy::onFnMatch ( FnMatchHandler  f = FnMatchHandler(),
void *  data = nullptr 
)

Definition at line 605 of file curlite.cpp.

void curlite::Easy::onHeader ( WriteHandler  f = WriteHandler(),
void *  data = nullptr 
)

Definition at line 558 of file curlite.cpp.

void curlite::Easy::onHeader_ ( SimplifiedDataHandler  f)

Definition at line 522 of file curlite.cpp.

void curlite::Easy::onIoctl ( IoctlHandler  f = IoctlHandler(),
void *  data = nullptr 
)

Definition at line 587 of file curlite.cpp.

void curlite::Easy::onOpenSocket ( OpenSocketHandler  f = OpenSocketHandler(),
void *  data = nullptr 
)

Definition at line 624 of file curlite.cpp.

void curlite::Easy::onProgress ( ProgressHandler  f = ProgressHandler(),
void *  data = nullptr 
)

Definition at line 567 of file curlite.cpp.

void curlite::Easy::onProgress_ ( SimplifiedProgressHandler  f)

Definition at line 531 of file curlite.cpp.

void curlite::Easy::onRead ( ReadHandler  f = ReadHandler(),
void *  data = nullptr 
)

Definition at line 540 of file curlite.cpp.

void curlite::Easy::onRead_ ( SimplifiedDataHandler  f)

Definition at line 504 of file curlite.cpp.

void curlite::Easy::onSeek ( SeekHandler  f = SeekHandler(),
void *  data = nullptr 
)

Definition at line 596 of file curlite.cpp.

void curlite::Easy::onSockOpt ( SockOptHandler  f = SockOptHandler(),
void *  data = nullptr 
)

Definition at line 642 of file curlite.cpp.

void curlite::Easy::onSslContext ( SslContextHandler  f = SslContextHandler(),
void *  data = nullptr 
)

Definition at line 669 of file curlite.cpp.

void curlite::Easy::onWrite ( WriteHandler  f = WriteHandler(),
void *  data = nullptr 
)

Definition at line 549 of file curlite.cpp.

void curlite::Easy::onWrite_ ( SimplifiedDataHandler  f)

Definition at line 513 of file curlite.cpp.

void curlite::Easy::onXferInfo ( XferInfoHandler  f = XferInfoHandler(),
void *  data = nullptr 
)

Definition at line 614 of file curlite.cpp.

curlite::Easy::operator bool ( ) const

Definition at line 353 of file curlite.cpp.

bool curlite::Easy::operator<< ( std::istream &  stream)

Definition at line 358 of file curlite.cpp.

void curlite::Easy::operator= ( Easy const &  other)
private
Easy & curlite::Easy::operator= ( Easy &&  other)

Definition at line 339 of file curlite.cpp.

bool curlite::Easy::operator>> ( std::ostream &  stream)

Definition at line 369 of file curlite.cpp.

bool curlite::Easy::pause ( int  bitmask)

Definition at line 424 of file curlite.cpp.

bool curlite::Easy::perform ( )

Definition at line 403 of file curlite.cpp.

size_t curlite::Easy::recv ( char *  buffer,
size_t  bufferSize 
)

Definition at line 417 of file curlite.cpp.

CURL * curlite::Easy::release ( )

Definition at line 380 of file curlite.cpp.

void curlite::Easy::reset ( )

Definition at line 390 of file curlite.cpp.

size_t curlite::Easy::send ( const char *  buffer,
size_t  bufferSize 
)

Definition at line 410 of file curlite.cpp.

template<class ValueType >
bool curlite::Easy::set ( CURLoption  opt,
ValueType  value 
)

Definition at line 297 of file curlite.hpp.

bool curlite::Easy::set ( CURLoption  key,
int  value 
)
inline

Definition at line 318 of file curlite.hpp.

bool curlite::Easy::set ( CURLoption  key,
bool  value 
)
inline

Definition at line 323 of file curlite.hpp.

bool curlite::Easy::set ( CURLoption  key,
std::string const &  value 
)
inline

Definition at line 328 of file curlite.hpp.

void curlite::Easy::setExceptionMode ( bool  throwExceptions)

Definition at line 436 of file curlite.cpp.

void curlite::Easy::setUserData ( void *  data)

Definition at line 467 of file curlite.cpp.

std::string curlite::Easy::unescape ( std::string const &  url)

Definition at line 490 of file curlite.cpp.

void * curlite::Easy::userData ( ) const

Definition at line 472 of file curlite.cpp.

Member Data Documentation

std::unique_ptr<Pimpl> curlite::Easy::_impl
private

Definition at line 92 of file curlite.hpp.


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


fanuc_post_processor
Author(s): Victor Lamoine - Institut Maupertuis
autogenerated on Mon Jun 10 2019 13:16:56