input_curl Class Reference
#include <curl.h>
Detailed Description
The
input_curl class is used to represent an
input obtained via libcurl.
Definition at line 31 of file curl.h.
Constructor & Destructor Documentation
virtual input_curl::~input_curl |
( |
|
) |
[virtual] |
input_curl::input_curl |
( |
const nstring & |
url |
) |
|
input_curl::input_curl |
( |
|
) |
[private] |
The default constructor. Do not use.
input_curl::input_curl |
( |
const input_curl & |
arg |
) |
[private] |
The copy constructor. Do not use.
Member Function Documentation
static bool input_curl::looks_likely |
( |
const nstring & |
fn |
) |
[static] |
The looks_likely class method is used to examine a filename and see if it starts with a prototype name (e.g. http: or ftp:) making it a likely candidate for the input_curl class.
void input_curl::progress_callback |
( |
double |
down_total, |
|
|
double |
down_current | |
|
) |
| | |
size_t input_curl::write_callback |
( |
char * |
data, |
|
|
size_t |
nbytes | |
|
) |
| | |
void input_curl::read_error |
( |
|
) |
|
nstring input_curl::name |
( |
|
) |
[virtual] |
The name method is used to determine the name of the input.
Implements input_ty.
long input_curl::length |
( |
|
) |
[virtual] |
The length method is used to determine the length of the input. May return -1 if the length is unknown.
Implements input_ty.
long input_curl::read_inner |
( |
void * |
data, |
|
|
size_t |
nbytes | |
|
) |
| | [virtual] |
The read_inner method is used to read unbuffered data from the given input stream. At most nbytes bytes will be read into data. The number of bytes actually read will be returned. At end-of-file, a value <= 0 will be returned, and data will be unchanged. All file read errors or format errors are fatal, and will cause the method to not return.
- Parameters:
-
| data | Where to put the results of the read. |
| nbytes | The maximum number of bytes to read. |
- Returns:
- The actual number of bytes read, or zero for end-of-file.
Implements input_ty.
long input_curl::ftell_inner |
( |
|
) |
[virtual] |
The ftell_inner method is used to determine the unbuffered current position within the input.
Implements input_ty.
bool input_curl::is_remote |
( |
|
) |
const [virtual] |
The is_remote method is used to determine whether or not an input stream is from a local file or a remote source. This is only intended to be a generally informative thing, to provide information to the user, it isn't (and can't be) utterly precise.
Reimplemented from input_ty.
bool input_curl::verify_handle |
( |
CURL * |
x |
) |
const [inline] |
void input_curl::eof_notify |
( |
|
) |
[inline] |
long input_curl::read_data |
( |
void * |
data, |
|
|
size_t |
len | |
|
) |
| | [private] |
The assignment operator. Do not use.
Field Documentation
The documentation for this class was generated from the following file: