Public Member Functions | Private Attributes
resource_retriever::Retriever Class Reference

Retrieves files from from a url. Caches a CURL handle so multiple accesses to a single url will keep connections open. More...

#include <retriever.h>

List of all members.

Public Member Functions

MemoryResource get (const std::string &url)
 Get a file and store it in memory.
 Retriever ()
 ~Retriever ()

Private Attributes

CURLcurl_handle_

Detailed Description

Retrieves files from from a url. Caches a CURL handle so multiple accesses to a single url will keep connections open.

Definition at line 66 of file retriever.h.


Constructor & Destructor Documentation

Definition at line 69 of file retriever.cpp.

Definition at line 74 of file retriever.cpp.


Member Function Documentation

MemoryResource resource_retriever::Retriever::get ( const std::string &  url)

Get a file and store it in memory.

Parameters:
urlThe url to retrieve. package://package/file will be turned into the correct file:// invocation
Returns:
The file, loaded into memory
Exceptions:
resource_retriever::Exceptionif anything goes wrong.

Definition at line 98 of file retriever.cpp.


Member Data Documentation

Definition at line 81 of file retriever.h.


The documentation for this class was generated from the following files:


resource_retriever
Author(s): Josh Faust
autogenerated on Thu Aug 27 2015 14:40:57