OpenSceneGraph  3.5.1
Namespaces | Macros | Typedefs | Enumerations | Functions
FileUtils File Reference
#include <osgDB/Registry>
#include <vector>
#include <deque>
#include <string>
#include <stdio.h>

Namespaces

 osgDB
 The osgDB library provides support for reading and writing scene graphs, providing a plugin framework and file utility classes.
 
 osgDB::FileOpResult
 

Macros

#define OSGDB_FILEUTILS   1
 

Typedefs

typedef std::vector< std::string > osgDB::DirectoryContents
 simple list of names to represent a directory's contents. More...
 

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)
 Overload of the standard fopen function. More...
 
OSGDB_EXPORT bool osgDB::makeDirectory (const std::string &directoryPath)
 Make a new directory. More...
 
OSGDB_EXPORT bool osgDB::makeDirectoryForFile (const std::string &filePath)
 Make a new directory for a given file. More...
 
OSGDB_EXPORT std::string osgDB::getCurrentWorkingDirectory (void)
 Get current working directory. More...
 
OSGDB_EXPORT bool osgDB::setCurrentWorkingDirectory (const std::string &newCurrentWorkingDirectory)
 Set current working directory. More...
 
OSGDB_EXPORT bool osgDB::fileExists (const std::string &filename)
 return true if a file exists. More...
 
OSGDB_EXPORT FileType osgDB::fileType (const std::string &filename)
 return type of file. More...
 
OSGDB_EXPORT std::string osgDB::findFileInPath (const std::string &filename, const FilePathList &filePath, CaseSensitivity caseSensitivity=CASE_SENSITIVE)
 find specified file in specified file path. More...
 
OSGDB_EXPORT std::string osgDB::findFileInDirectory (const std::string &fileName, const std::string &dirName, CaseSensitivity caseSensitivity=CASE_SENSITIVE)
 return the directory/filename of a file if its is contained within specified directory. More...
 
OSGDB_EXPORT DirectoryContents osgDB::getDirectoryContents (const std::string &dirName)
 Return the contents of a directory. More...
 
OSGDB_EXPORT DirectoryContents osgDB::getSortedDirectoryContents (const std::string &dirName)
 Return the contents of a directory, sorting the names into alphabetic and numberical order. More...
 
OSGDB_EXPORT DirectoryContents osgDB::expandWildcardsInFilename (const std::string &filename)
 Return the list of filenames that match the given filename with wildcards. More...
 
OSGDB_EXPORT FileOpResult::Value osgDB::copyFile (const std::string &source, const std::string &destination)
 Copy a file to another location, overwriting if necessary. More...
 
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)
 Search for specified file in file system, checking the DataFilePathList for possible paths, returning the full path of the first valid file found, return an empty string if no string is found. More...
 
OSGDB_EXPORT std::string osgDB::findDataFile (const std::string &filename, const Options *options, CaseSensitivity caseSensitivity=CASE_SENSITIVE)
 Search for specified file in file system, checking first the database path set in the Options structure, then the DataFilePathList for possible paths, returning the full path of the first valid file found, return an empty string if no string is found. More...
 
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)
 convert a string containing a list of paths delimited either with ';' (Windows) or ':' (All other platforms) into FilePath representation. More...
 
OSGDB_EXPORT bool osgDB::containsCurrentWorkingDirectoryReference (const FilePathList &paths)
 Return true if FilePathList contains a filepath that is significies checking of the current working directory. More...
 
OSGDB_EXPORT void osgDB::appendPlatformSpecificLibraryFilePaths (FilePathList &filepath)
 
OSGDB_EXPORT void osgDB::appendPlatformSpecificResourceFilePaths (FilePathList &filepath)
 

Macro Definition Documentation

#define OSGDB_FILEUTILS   1

osg logo
Generated at Wed Nov 11 2015 22:14:24 for the OpenSceneGraph by doxygen 1.8.10.