#include <includestream.h>
Collaboration diagram for Dv::Util::includestream:
Public Types | |
typedef std::list< std::string > | directories |
Type of optional second argument: a list of directories to search for included files. | |
Public Member Functions | |
includestream (std::istream &stream, directories *dirs=0) | |
Uses open stream. | |
includestream (std::istream &stream, const std::string &dir) | |
Uses open stream. | |
~includestream () | |
Destructor. | |
Static Public Member Functions | |
std::string | find (const std::string &filename, const directories &dirs) |
Try to find a file d/filename for some directory d in dirs. | |
Private Attributes | |
IncludeFilter | filter_ |
An includestream is an istream that replaces lines of the form
#include "file" #include <file>
file
. If file
is between double quotes and is not absolute, it is interpreted as relative to the current directory. Otherwise (i.e. if it is of the form <file>
, it will be searched for (if it is not absolute) in a list of directories. Definition at line 38 of file includestream.h.
|
Type of optional second argument: a list of directories to search for included files. Definition at line 43 of file includestream.h. Referenced by Dv::Util::includestream::IncludeFilter::dirs(). |
|
Uses open stream.
|
|
Uses open stream.
|
|
Destructor.
|
|
Try to find a file d/filename for some directory d in dirs. Return zero-length string if not found. The directories are tried in order.
|
|
Definition at line 121 of file includestream.h. |
dvutil-0.13.15 | [30 December, 2004] |