Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

cafe::DefaultFileFinder Class Reference

Find a particular file in a possible list of locations. More...

#include <DefaultFileFinder.hpp>

List of all members.

Public Member Functions

 DefaultFileFinder (const std::string &first_pattern="")
 If argument is null, then use the default setup with is ".", $SRT_LOCAL_CONTEXT, and $SRT_PUBLIC_CONTEXT.

void push_back (const std::string &pattern)
 Add a new pattern to the end of the list.

std::string findFile (const std::string &base_name)
 Use the stub given to see if the file can be found.


Private Member Functions

 ClassDef (DefaultFileFinder, 0)


Detailed Description

Find a particular file in a possible list of locations.

This maintains a list of FileListExpander objects, which contain a replacement pattern. The file is passed to each one, one by one, until the file is found, or nothing... :( See the file expander object to find the pattern format and instructions.

Definition at line 19 of file DefaultFileFinder.hpp.


Constructor & Destructor Documentation

cafe::DefaultFileFinder::DefaultFileFinder const std::string &  first_pattern = ""  ) 
 

If argument is null, then use the default setup with is ".", $SRT_LOCAL_CONTEXT, and $SRT_PUBLIC_CONTEXT.

Definition at line 12 of file DefaultFileFinder.cpp.


Member Function Documentation

cafe::DefaultFileFinder::ClassDef DefaultFileFinder  ,
[private]
 

std::string cafe::DefaultFileFinder::findFile const std::string &  base_name  ) 
 

Use the stub given to see if the file can be found.

If not, then return an empty string.

Definition at line 23 of file DefaultFileFinder.cpp.

void cafe::DefaultFileFinder::push_back const std::string &  pattern  ) 
 

Add a new pattern to the end of the list.

Definition at line 17 of file DefaultFileFinder.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Mar 28 10:13:10 2006 for CAF by doxygen 1.3.4