| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DirSearchPath Class Reference

search for files in a list of directories More...

#include <DirSearchPath.h>

List of all members.


Public Types

typedef boost::filesystem::path path

Public Member Functions

structors
 DirSearchPath ()
 DirSearchPath (const std::string &stringifiedPath, const char *separator=",:")
 
Exceptions:
boost::filesystem::filesystem_error 

modifiers
bool add (const path &dir)
 
Exceptions:
filesystem_error 

bool addCWD ()
 add current work dir (*nix pwd) to path
accessors
bool find (const std::string &fileName, std::string &fullFileName) const
 returns a flag if fileName found in search path, and sets ref to fully qualified file name (in native form)
bool find (const path &file, path &fileFound) const
 returns a flag if file found in search path. Sets ref to completed path
std::list< pathfind_all (const path &file) const
 returns lists of files found in search path.

Static Public Member Functions

helpers
static bool existsDir (const std::string &dirName)
 check dirName is valid
static bool existsDir (const path &dir)
 check dir path is valid

Private Attributes

std::list< pathm_dirs
 the dir container

Classes

class  eqPath
 name More...

Detailed Description

search for files in a list of directories

Author:
Paolo Calafiura <pcalafiura@lbl.gov> - ATLAS Collaboration
Id
DirSearchPath.h,v 1.2 2007/10/16 15:37:25 marcocle Exp

Definition at line 18 of file DirSearchPath.h.


Member Typedef Documentation

typedef boost::filesystem::path DirSearchPath::path

Definition at line 20 of file DirSearchPath.h.


Constructor & Destructor Documentation

DirSearchPath::DirSearchPath (  )  [inline]

Definition at line 24 of file DirSearchPath.h.

00024 { addCWD(); }

DirSearchPath::DirSearchPath ( const std::string &  stringifiedPath,
const char *  separator = ",:" 
)

Exceptions:
boost::filesystem::filesystem_error 


Member Function Documentation

bool DirSearchPath::add ( const path dir  ) 

Exceptions:
filesystem_error 

bool DirSearchPath::addCWD (  ) 

add current work dir (*nix pwd) to path

bool DirSearchPath::find ( const std::string &  fileName,
std::string &  fullFileName 
) const

returns a flag if fileName found in search path, and sets ref to fully qualified file name (in native form)

bool DirSearchPath::find ( const path file,
path fileFound 
) const

returns a flag if file found in search path. Sets ref to completed path

std::list<path> DirSearchPath::find_all ( const path file  )  const

returns lists of files found in search path.

static bool DirSearchPath::existsDir ( const std::string &  dirName  )  [static]

check dirName is valid

static bool DirSearchPath::existsDir ( const path dir  )  [static]

check dir path is valid


Member Data Documentation

std::list<path> DirSearchPath::m_dirs [private]

the dir container

Definition at line 80 of file DirSearchPath.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 19:57:06 2011 for GaudiKernel by doxygen 1.4.7