libmoost
moost::murcl::global Class Reference

This class initialialises the Curl 'program environment'. More...

#include <global.hpp>

List of all members.

Public Member Functions

bool isok () const
 Checks if LibCurl was correctly initialised. This should be checked before using the murcl API (not mandatory but wise).
CURLcode status_code () const
 Get the status of initialisation.
 ~global ()
 The d_tor cleans up the LibCurl global space.

Private Member Functions

 global ()
 Inialises the LibCurl global space and is constructed as a singleton.

Private Attributes

CURLcode code_

Friends

class moost::utils::singleton_default< T >::friend_type

Detailed Description

This class initialialises the Curl 'program environment'.

Definition at line 52 of file global.hpp.


Constructor & Destructor Documentation

moost::murcl::global::global ( ) [inline, private]

Inialises the LibCurl global space and is constructed as a singleton.

Definition at line 60 of file global.hpp.

The d_tor cleans up the LibCurl global space.

Definition at line 103 of file global.hpp.


Member Function Documentation

bool moost::murcl::global::isok ( ) const [inline]

Checks if LibCurl was correctly initialised. This should be checked before using the murcl API (not mandatory but wise).

Returns:
true if LibCurl is ready for use, else false (in which case panic!)

Definition at line 85 of file global.hpp.

CURLcode moost::murcl::global::status_code ( ) const [inline]

Get the status of initialisation.

Returns:
Curl status code

Definition at line 95 of file global.hpp.


Friends And Related Function Documentation

friend class moost::utils::singleton_default< T >::friend_type [friend]

Definition at line 54 of file global.hpp.


Member Data Documentation

CURLcode moost::murcl::global::code_ [private]

Definition at line 109 of file global.hpp.


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