Main Page   Namespace List   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

osgAL::FilePathContainer Class Reference

List of all members.

Public Methods

 FilePathContainer ()
 FilePathContainer (const std::string &env)
 ~FilePathContainer ()
void setFilePathList (const std::string &paths, const std::string &delimitor=FP_PATH_DELIMITER)
bool setEnvironmentVariable (const std::string &env)
void setFilePath (const std::string &path)
void FilePathContainer::addFilePath (const std::string &path)
void pushbackPath (const std::string &path)
void pushfrontPath (const std::string &path)
std::list< std::string > & getFilePathList ()
std::string extractDirectory (const std::string &path)
std::string extractFilename (const std::string &path)
std::string findFile (const std::string &filename)

Private Types

typedef std::list< std::string > PathList

Private Methods

void convertStringToList (const std::string &str, PathList &lst, const std::string &delimitor)

Private Attributes

PathList m_path_list
std::string m_delimiter

Member Typedef Documentation

typedef std::list<std::string> osgAL::FilePathContainer::PathList [private]
 

Path list


Constructor & Destructor Documentation

osgAL::FilePathContainer::FilePathContainer  
 

Constructor

osgAL::FilePathContainer::FilePathContainer const std::string &    env
 

Constructor - set the file path found in given environment variable

osgAL::FilePathContainer::~FilePathContainer  
 

Destructor


Member Function Documentation

void osgAL::FilePathContainer::convertStringToList const std::string &    str,
PathList   lst,
const std::string &    delimitor
[private]
 

Convert given string to list with sub strings (seperated by delimitor in string)

std::string osgAL::FilePathContainer::extractDirectory const std::string &    path
 

Get directory from path

std::string osgAL::FilePathContainer::extractFilename const std::string &    path
 

Get filename from path

void osgAL::FilePathContainer::FilePathContainer::addFilePath const std::string &    path
 

Adds a list of paths to the previous one

std::string osgAL::FilePathContainer::findFile const std::string &    filename
 

Return path to given filename if file exists in any directory

std::list<std::string>& osgAL::FilePathContainer::getFilePathList  
 

Get file path list

void osgAL::FilePathContainer::pushbackPath const std::string &    path
 

Adds a filepath to the end of the list

void osgAL::FilePathContainer::pushfrontPath const std::string &    path
 

Adds a filepath to the beginning of the list

bool osgAL::FilePathContainer::setEnvironmentVariable const std::string &    env
 

Set the file path found in given environment variable - returns true if env var found

void osgAL::FilePathContainer::setFilePath const std::string &    path
 

Set the file path directly

void osgAL::FilePathContainer::setFilePathList const std::string &    paths,
const std::string &    delimitor = FP_PATH_DELIMITER
 

Set the file path using a single string deliminated with given delimitor


Member Data Documentation

std::string osgAL::FilePathContainer::m_delimiter [private]
 

Delimitor used when parsing environment varaible

PathList osgAL::FilePathContainer::m_path_list [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Nov 22 09:27:17 2004 for OpenSceneGraphAudioLibrary(OsgAL) by doxygen1.2.15