* This class provides global initialization of curl so that use of all curl * interfaces is thread safe. */
| 35 | * interfaces is thread safe. |
| 36 | */ |
| 37 | class curl_global { |
| 38 | public: |
| 39 | /** |
| 40 | * The default constructor will initialize the curl |
| 41 | * environment with the default flag. |
| 42 | */ |
| 43 | curl_global(); |
| 44 | /** |
| 45 | * Overloaded constructor that initializes curl environment |
| 46 | * with user specified flag. |
| 47 | */ |
| 48 | explicit curl_global(long); |
| 49 | |
| 50 | /** |
| 51 | * Copying disabled to follow RAII idiom. |
| 52 | */ |
| 53 | curl_global(const curl_global&) = delete; |
| 54 | curl_global& operator=(const curl_global&) = delete; |
| 55 | |
| 56 | /** |
| 57 | * The virtual destructor will provide an easy and clean |
| 58 | * way to deallocate resources, closing curl environment |
| 59 | * correctly. |
| 60 | */ |
| 61 | virtual ~curl_global(); |
| 62 | }; |
| 63 | } |
| 64 | |
| 65 | #endif /* defined(CURLCPP_CURL_GLOBAL_H) */ |
nothing calls this directly
no outgoing calls
no test coverage detected