TwiceAsNice
2019-02-18
|
C++ wrapper for the libcurl c interface. More...
#include <libCurlWrap.h>
Public Member Functions | |
CLibCurlWrap () | |
virtual | ~CLibCurlWrap () |
void | HttpGet (const std::string &url, std::string &result) |
void | HttpGet (const std::string &url, std::vector< uint8_t > &result) |
void | HttpPost (const std::string &url, const std::string &postFields, std::string &result) |
void | HttpPost (const std::string &url, const std::string &postFields, std::vector< uint8_t > &result) |
void | setTimeout (int timeout) |
unsigned int | getTimeout () |
std::string | GetVerison () |
Private Member Functions | |
void | CurlSetupStrWrite (const std::string &url) |
std::string | ExecuteStr () |
void | CurlSetupVectWrite (const std::string &url, const std::vector< uint8_t > &result) |
void | ExecuteVect (std::vector< uint8_t > &result) |
CLibCurlWrap (const CLibCurlWrap &) | |
CLibCurlWrap & | operator= (CLibCurlWrap &) |
Private Attributes | |
unsigned int | m_timeout |
CURL * | m_curlHandle |
const std::string | m_fileName |
C++ wrapper for the libcurl c interface.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright(c) 2009 Apogee Instruments, Inc.
CLibCurlWrap::CLibCurlWrap | ( | ) |
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
unsigned int CLibCurlWrap::getTimeout | ( | ) |
std::string CLibCurlWrap::GetVerison | ( | ) |
void CLibCurlWrap::HttpGet | ( | const std::string & | url, |
std::string & | result | ||
) |
void CLibCurlWrap::HttpPost | ( | const std::string & | url, |
const std::string & | postFields, | ||
std::string & | result | ||
) |
void CLibCurlWrap::HttpPost | ( | const std::string & | url, |
const std::string & | postFields, | ||
std::vector< uint8_t > & | result | ||
) |
|
private |
void CLibCurlWrap::setTimeout | ( | int | timeout | ) |
|
private |
|
private |
|
private |