Show
Ignore:
Timestamp:
11/23/09 11:19:37 (4 years ago)
Author:
robert
Message:

From Chris Hanson, " Add support for requesting and setting the current directory (a la getcwd/chdir) via a
C++-friendly string-class API.

Prevent osgDB::concatPaths from faulting if the supplied "left" path string is empty."

Files:
1 modified

Legend:

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

    r10171 r10818  
    4141extern OSGDB_EXPORT bool makeDirectoryForFile( const std::string &filePath ); 
    4242     
     43// Get current working directory. 
     44extern OSGDB_EXPORT std::string getCurrentWorkingDirectory( void ); 
     45 
     46// Set current working directory. 
     47extern OSGDB_EXPORT bool setCurrentWorkingDirectory( const std::string &newCurrentWorkingDirectory ); 
     48 
    4349 
    4450/** return true if a file exists. */ 
     
    9197extern OSGDB_EXPORT std::string findLibraryFile(const std::string& filename,CaseSensitivity caseSensitivity=CASE_SENSITIVE); 
    9298 
    93 /** convert a string containing a list of paths  delimited either with ';' (Windows) or ':' (All other platforms) into FilePath representation.*/ 
     99/** convert a string containing a list of paths delimited either with ';' (Windows) or ':' (All other platforms) into FilePath representation.*/ 
    94100extern OSGDB_EXPORT void convertStringPathIntoFilePathList(const std::string& paths,FilePathList& filepath); 
    95101