DIDataResourceManager Struct Reference
[Core]
#include <Interfaces.h>
Inherits DIObjectBase.
Detailed Description
A central point for managing access to data resources, such as local files or online URL accessed content.
- Todo:
- Consider a RemoveSearchPath option.
|
Public Member Functions |
| void | AddSearchPath (const char *sURL) |
| | Adds an absolute URL to be used for expanding relative URLs.
|
| DIDataResource * | GetResource (const char *sURL) |
| | Returns a data resource.
|
| void | GetResourceNames (DIStringList1 *list) |
| | Returns the names of all the resources currently available.
|
Member Function Documentation
| void DIDataResourceManager::AddSearchPath |
( |
const char * |
sURL |
) |
|
Adds an absolute URL to be used for expanding relative URLs.
- Note:
- The current implementation (ResourceManager as part of DigitalSpacesCore) supports
- Local system directories (Paths starting with a drive letter, not network paths)
- Local system relative directories
- HTML content (check is first character is '<' )
- Folders containing the file file.index (for both local folders and remote folders)
When parsing HTML content (file.index should be a HTML file), the implementation looks for <a href="accessURL">ResourceName</a> . The content needs to be valid XML.
You do not need to prepend local system paths with
file:// . You do need to include the drive letter.
The documentation for this struct was generated from the following file: