Implements Filter interface for filterstreambuf. More...
Public Member Functions | |
IncludeFilter (std::istream &is, directories *dirs) | |
Constructor. | |
IncludeFilter (std::istream &is, const std::string &dir) | |
Constructor. | |
~IncludeFilter () | |
Destructor. | |
int | put (int c) |
int | get () |
int | sync () |
void | close () |
std::ios::iostate | state () const |
const directories & | dirs () const |
Private Member Functions | |
void | pop (std::istream &is) |
Auxiliary function: pop &is from dirs_ . | |
Private Attributes | |
directories | dirs_ |
Underlying istream from where the filter takes its input. | |
std::string | line_ |
Current input line. | |
std::string::size_type | pos_ |
Current position in input line, std::string::npost if none. | |
std::list< std::istream * > | is_ |
Stack of open files. |
Implements Filter interface for filterstreambuf.
Definition at line 42 of file includestream.h.
Dv::Util::includestream::IncludeFilter::IncludeFilter | ( | std::istream & | is, | |
directories * | dirs | |||
) |
Constructor.
is | underlying input stream (need not be a file stream). | |
dirs | pointer (may be 0) to a list of directories to search if an include directive is of the <file> form. |
Dv::Util::includestream::IncludeFilter::IncludeFilter | ( | std::istream & | is, | |
const std::string & | dir | |||
) |
Constructor.
is | underlying input stream (need not be a file stream). | |
dir | a single directory to search if an include directive is of the <file> form. |
Dv::Util::includestream::IncludeFilter::~IncludeFilter | ( | ) |
Destructor.
int Dv::Util::includestream::IncludeFilter::put | ( | int | c | ) | [inline] |
Definition at line 58 of file includestream.h.
int Dv::Util::includestream::IncludeFilter::get | ( | ) |
int Dv::Util::includestream::IncludeFilter::sync | ( | ) | [inline] |
Definition at line 60 of file includestream.h.
void Dv::Util::includestream::IncludeFilter::close | ( | ) | [inline] |
Definition at line 61 of file includestream.h.
std::ios::iostate Dv::Util::includestream::IncludeFilter::state | ( | ) | const |
const directories& Dv::Util::includestream::IncludeFilter::dirs | ( | ) | const [inline] |
<file>
. Definition at line 66 of file includestream.h.
References dirs_.
void Dv::Util::includestream::IncludeFilter::pop | ( | std::istream & | is | ) | [private] |
Auxiliary function: pop &is from dirs_ .
is | stream to pop. |
Underlying istream from where the filter takes its input.
Definition at line 69 of file includestream.h.
Referenced by dirs().
std::string Dv::Util::includestream::IncludeFilter::line_ [private] |
Current input line.
Definition at line 71 of file includestream.h.
std::string::size_type Dv::Util::includestream::IncludeFilter::pos_ [private] |
Current position in input line, std::string::npost if none.
Definition at line 73 of file includestream.h.
std::list<std::istream*> Dv::Util::includestream::IncludeFilter::is_ [private] |
Stack of open files.
Definition at line 75 of file includestream.h.
dvutil-1.0.10 | [ 5 December, 2009] |