# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::CPath Class Reference

Utility class for search paths. More...

#include <path.h>

List of all members.

Static Public Methods

void addSearchPath ( const std::string& path )
 Adds a search path. The separator for directories is '/'. More...

std::string lookup ( const std::string& filename )
 Returns the long name (path and filename) for the specified file, trying first the local path, then using search paths stored by addSearchPath in the same order as they were added. More...


Static Private Attributes

CStringVector _SearchPaths


Detailed Description

Utility class for search paths.

Author(s):
Olivier Cado , Nevrax France
Date:
2000

Definition at line 55 of file path.h.


Member Function Documentation

void NLMISC::CPath::addSearchPath ( const std::string & path ) [static]
 

Adds a search path. The separator for directories is '/'.

Definition at line 54 of file path.cpp.

string NLMISC::CPath::lookup ( const std::string & filename ) [static]
 

Returns the long name (path and filename) for the specified file, trying first the local path, then using search paths stored by addSearchPath in the same order as they were added.

If no path is found where path/file exists, an exception EPathNotFound is raised.

Definition at line 77 of file path.cpp.


Member Data Documentation

CStringVector NLMISC::CPath::_SearchPaths [static, private]
 

Definition at line 47 of file path.cpp.


The documentation for this class was generated from the following files: