Show
Ignore:
Timestamp:
05/09/09 10:49:27 (6 years ago)
Author:
robert
Message:

Refactored the Registry::ReadFileCallback?, WriteFileCallback? and ReaderWriter::Options to they are now defined in their own header and in the osgDB namespace.

Introduced a new FindFileCallback? to Registry to compliement the existing ReadFileCallback? and WriteFileCallback?.

Added support for assign Find, Read and WriteFileCallbacks? to osdDB::Options to enable plugins/applications to override the callbacks just for that
read/write call and any nested file operations

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgDB/FileUtils

    r9475 r10171  
    2323 
    2424namespace osgDB { 
    25  
    26 enum CaseSensitivity 
    27 { 
    28     CASE_SENSITIVE, 
    29     CASE_INSENSITIVE 
    30 }; 
    3125 
    3226enum FileType 
     
    8781  * returning the full path of the first valid file found, return an empty string if no string is found. 
    8882  */ 
    89 extern OSGDB_EXPORT std::string findDataFile(const std::string& filename,const ReaderWriter::Options* options, CaseSensitivity caseSensitivity=CASE_SENSITIVE); 
     83extern OSGDB_EXPORT std::string findDataFile(const std::string& filename,const Options* options, CaseSensitivity caseSensitivity=CASE_SENSITIVE); 
    9084 
    9185inline void setLibraryFilePathList(const FilePathList& filepaths) { osgDB::Registry::instance()->setLibraryFilePathList(filepaths); }