#include <sglDataLoader.hpp>
Inheritance diagram for sglDataLoader::
Public Methods | |
virtual | ~sglDataLoader ()=0 |
Static Public Methods | |
void | registerDLL (const string &extension, const string &dll_name) |
void | getDLL (const string &extension, string &dll_name) |
bool | loadDLL (const string &dll_name) |
void | splitString (const string &str, vector< string > &vec, const string &delimiters=string(";")) |
void | setDataPath (const vector< string > &path) |
void | addToDataPath (const string &path) |
void | getDataPath (vector< string > &path) |
string | extractFilenameFromPath (const string &filepath) |
string | extractDirectoryFromPath (const string &filepath) |
string | extractExtensionFromFilename (const string &filename) |
bool | compareExtension (const string &filename, const string &extension) |
bool | searchDir (const string &directory, const string &filename, string &foundname) |
bool | checkFile (const string &filename) |
bool | findFile (const string &filepath, const string *alternate_path, string &foundname) |
int | strCaseCmp (const char *s1, const char *s2) |
void | toUpper (string &str) |
void | toLower (string &str) |
Static Public Attributes | |
string | s_dir_separators |
Protected Methods | |
sglDataLoader () | |
sglDataLoader (const sglDataLoader &) | |
sglDataLoader& | operator= (const sglDataLoader &) |
Definition at line 39 of file sglDataLoader.hpp.
|
Destructor. |
|
Register a DLL and the extension it supports. Note that a single dll can support multiple extensions. Registering an extension a second time will replace the existing entry.
|
|
Get the registered dll based on extension.
|
|
Load the dll with the given basename, and register the image/model loader functions that correspond to the extensions for which this dll_name has been registered. Note that the true name of the dll actually loaded is system dependent: libdll_name.so on unix vs dll_name.dll on WIN32.
|
|
Helper function that splits a single string into multiple strings.
|
|
Set the data path used for searching for image or model files.
|
|
Add a path to the data path search list.
|
|
Get the current data path.
|
|
Strip the directory from the filepath.
|
|
Strip the filename from the filepath.
|
|
Extract extension from the filename.
|
|
Check to see if string has the given extension.
|
|
Performs a case insensitive search of the given directory for a file with the given name.
|
|
Check to see if the given file exists and is readable.
|
|
Attempts to find a file with the given name. If the file isn't found at the location given, a search will be made in the alternative_path directory. If it still isn't found, a full search will be made in the entire data path.
|
|
Perform a case insensitive comparison of the two strings.
|
|
Convert the given string to uppercase.
|
|
Convert the given string to lowercase.
|