Audacity
3.2.0
libraries
lib-network-manager
curl
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
15
struct
curl_slist;
16
17
namespace
audacity
18
{
19
namespace
network_manager
20
{
21
22
class
CurlStringList
final
23
{
24
public
:
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
37
private:
38
curl_slist*
mList
{
nullptr
};
39
};
40
41
}
42
}
audacity::network_manager::CurlStringList
Definition:
CurlStringList.h:23
audacity::network_manager::CurlStringList::append
void append(const std::string &string) noexcept
Definition:
CurlStringList.cpp:38
audacity::network_manager::CurlStringList::CurlStringList
CurlStringList()=default
audacity::network_manager::CurlStringList::mList
curl_slist * mList
Definition:
CurlStringList.h:38
audacity::network_manager::CurlStringList::getCurlList
curl_slist * getCurlList() const noexcept
Definition:
CurlStringList.cpp:48
audacity::network_manager::CurlStringList::~CurlStringList
~CurlStringList() noexcept
Definition:
CurlStringList.cpp:27
audacity
Definition:
FileHistory.h:23
std
STL namespace.
Generated by
1.9.3