OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Typedefs | Enumerations | Functions
FileUtils.h File Reference
#include <osgDB/Registry>
#include <vector>
#include <deque>
#include <string>
#include <stdio.h>
Include dependency graph for FileUtils.h:

Go to the source code of this file.

Namespaces

 osgDB
 
 osgDB::FileOpResult
 

Typedefs

typedef std::vector< std::string > osgDB::DirectoryContents
 

Enumerations

enum  osgDB::FileType { osgDB::FILE_NOT_FOUND, osgDB::REGULAR_FILE, osgDB::DIRECTORY }
 
enum  osgDB::FileOpResult::Value {
  osgDB::FileOpResult::OK, osgDB::FileOpResult::SOURCE_EQUALS_DESTINATION, osgDB::FileOpResult::BAD_ARGUMENT, osgDB::FileOpResult::SOURCE_MISSING,
  osgDB::FileOpResult::SOURCE_NOT_OPENED, osgDB::FileOpResult::DESTINATION_NOT_OPENED, osgDB::FileOpResult::READ_ERROR, osgDB::FileOpResult::WRITE_ERROR
}
 

Functions

OSGDB_EXPORT FILE * osgDB::fopen (const char *filename, const char *mode)
 
OSGDB_EXPORT bool osgDB::makeDirectory (const std::string &directoryPath)
 
OSGDB_EXPORT bool osgDB::makeDirectoryForFile (const std::string &filePath)
 
OSGDB_EXPORT std::string osgDB::getCurrentWorkingDirectory (void)
 
OSGDB_EXPORT bool osgDB::setCurrentWorkingDirectory (const std::string &newCurrentWorkingDirectory)
 
OSGDB_EXPORT bool osgDB::fileExists (const std::string &filename)
 
OSGDB_EXPORT FileType osgDB::fileType (const std::string &filename)
 
OSGDB_EXPORT std::string osgDB::findFileInPath (const std::string &filename, const FilePathList &filePath, CaseSensitivity caseSensitivity=CASE_SENSITIVE)
 
OSGDB_EXPORT std::string osgDB::findFileInDirectory (const std::string &fileName, const std::string &dirName, CaseSensitivity caseSensitivity=CASE_SENSITIVE)
 
OSGDB_EXPORT DirectoryContents osgDB::getDirectoryContents (const std::string &dirName)
 
OSGDB_EXPORT DirectoryContents osgDB::getSortedDirectoryContents (const std::string &dirName)
 
OSGDB_EXPORT DirectoryContents osgDB::expandWildcardsInFilename (const std::string &filename)
 
OSGDB_EXPORT FileOpResult::Value osgDB::copyFile (const std::string &source, const std::string &destination)
 
void osgDB::setDataFilePathList (const FilePathList &filepath)
 
void osgDB::setDataFilePathList (const std::string &paths)
 
FilePathList & osgDB::getDataFilePathList ()
 
OSGDB_EXPORT std::string osgDB::findDataFile (const std::string &filename, CaseSensitivity caseSensitivity=CASE_SENSITIVE)
 
OSGDB_EXPORT std::string osgDB::findDataFile (const std::string &filename, const Options *options, CaseSensitivity caseSensitivity=CASE_SENSITIVE)
 
void osgDB::setLibraryFilePathList (const FilePathList &filepaths)
 
void osgDB::setLibraryFilePathList (const std::string &paths)
 
FilePathList & osgDB::getLibraryFilePathList ()
 
OSGDB_EXPORT std::string osgDB::findLibraryFile (const std::string &filename, CaseSensitivity caseSensitivity=CASE_SENSITIVE)
 
OSGDB_EXPORT void osgDB::convertStringPathIntoFilePathList (const std::string &paths, FilePathList &filepath)
 
OSGDB_EXPORT bool osgDB::containsCurrentWorkingDirectoryReference (const FilePathList &paths)
 
OSGDB_EXPORT void osgDB::appendPlatformSpecificLibraryFilePaths (FilePathList &filepath)
 
OSGDB_EXPORT void osgDB::appendPlatformSpecificResourceFilePaths (FilePathList &filepath)