Audacity 3.2.0
CurlStringList.h
Go to the documentation of this file.
1/*!********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file CurlStringList.h
6 @brief Declare a RAII wrapper for the curl_slist.
7
8 Dmitry Vedenko
9 **********************************************************************/
10
11#pragma once
12
13#include <string>
14
15struct curl_slist;
16
17namespace audacity
18{
19namespace network_manager
20{
21
22class CurlStringList final
23{
24public:
25 CurlStringList () = default;
26 CurlStringList (CurlStringList&& rhs) noexcept;
27
28 ~CurlStringList () noexcept;
29
30 CurlStringList& operator = (CurlStringList&& rhs) noexcept;
31
32 void append (const std::string& string) noexcept;
33 void append (const char* string) noexcept;
34
35 curl_slist* getCurlList () const noexcept;
36
37private:
38 curl_slist* mList { nullptr };
39};
40
41}
42}
void append(const std::string &string) noexcept
curl_slist * getCurlList() const noexcept
STL namespace.