Changeset 13041 for OpenSceneGraph/trunk/include/osgDB/FileUtils
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgDB/FileUtils (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgDB/FileUtils
r12969 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 33 33 /** Make a new directory for a given file. */ 34 34 extern OSGDB_EXPORT bool makeDirectoryForFile( const std::string &filePath ); 35 35 36 36 /** Get current working directory. */ 37 37 extern OSGDB_EXPORT std::string getCurrentWorkingDirectory( void ); … … 73 73 74 74 /** Return the list of filenames that match the given filename with wildcards. 75 * Will only expand '*', and will not expand wildcards in directory, only in 76 * filename part of the given filename. 77 * Return value will contain path+filename so that if ever the above 78 * limitation (expanding wildcards in directory) is fixed, client code will 75 * Will only expand '*', and will not expand wildcards in directory, only in 76 * filename part of the given filename. 77 * Return value will contain path+filename so that if ever the above 78 * limitation (expanding wildcards in directory) is fixed, client code will 79 79 * still work unchanged. */ 80 80 extern OSGDB_EXPORT DirectoryContents expandWildcardsInFilename(const std::string& filename); … … 109 109 inline FilePathList& getDataFilePathList() { return osgDB::Registry::instance()->getDataFilePathList(); } 110 110 111 /** Search for specified file in file system, checking the DataFilePathList for possible paths, 111 /** Search for specified file in file system, checking the DataFilePathList for possible paths, 112 112 * returning the full path of the first valid file found, return an empty string if no string is found. 113 113 */ 114 114 extern OSGDB_EXPORT std::string findDataFile(const std::string& filename,CaseSensitivity caseSensitivity=CASE_SENSITIVE); 115 115 116 /** Search for specified file in file system, checking first the database path set in the Options structure, then the DataFilePathList for possible paths, 116 /** Search for specified file in file system, checking first the database path set in the Options structure, then the DataFilePathList for possible paths, 117 117 * returning the full path of the first valid file found, return an empty string if no string is found. 118 118 */
