Class Retriever

Class Documentation

class Retriever

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

Public Functions

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

Get a file and store it in memory.

Parameters:

url – The url to retrieve. package://package/file will be turned into the correct file:// invocation

Throws:

resource_retriever::Exception – if anything goes wrong.

Returns:

The file, loaded into memory