Public Member Functions | Protected Member Functions

VgEngine::VgIResourceManager Class Reference

Manages resources. More...

List of all members.

Public Member Functions

virtual ~VgIResourceManager ()
 Destructor.
virtual VgEngine::VgRefPtr
< VgBinaryBuffer
readFromFileOrURL (const std::string &pFilenameOrURL)=0
 Reads synchronously a file or a URL.
virtual VgEngine::VgRefPtr
< VgEngine::VgIResourceRequest
readFromFileOrURL (const VgResourceRequestParameters &pParameters)=0
 Reads asynchronously a file or a URL.

Protected Member Functions

 VgIResourceManager ()
 Constructor.

Detailed Description

Manages resources.


Constructor & Destructor Documentation

VgEngine::VgIResourceManager::VgIResourceManager (  ) [inline, protected]

Constructor.

virtual VgEngine::VgIResourceManager::~VgIResourceManager (  ) [inline, virtual]

Destructor.


Member Function Documentation

virtual VgEngine::VgRefPtr< VgBinaryBuffer > VgEngine::VgIResourceManager::readFromFileOrURL ( const std::string &  pFilenameOrURL ) [pure virtual]

Reads synchronously a file or a URL.

This function does not have the constraint that a configuration has to be loaded.

Parameters:
pFilenameOrURLFile-system path or URL of the resource
Returns:
The buffer filled with the source content.
virtual VgEngine::VgRefPtr< VgEngine::VgIResourceRequest > VgEngine::VgIResourceManager::readFromFileOrURL ( const VgResourceRequestParameters pParameters ) [pure virtual]

Reads asynchronously a file or a URL.

Parameters:
pParametersParameters of the request.
Returns:
The resulting request. If the callback is NULL or the URI is empty, it returns NULL.
Remarks:
this function currently works ONLY IF a configuration is loaded since it relies on threads being created.

The documentation for this class was generated from the following file:
VisioDevKit 2.0, Visioglobe® 2013