|
Gaudi Framework, version v22r4 |
| Home | Generated: Fri Sep 2 2011 |
#include <IncludedFiles.h>

Public Types | |
| typedef std::map< std::string, Position > | Container |
Public Member Functions | |
| bool | AddFile (const std::string &filename, const Position &from) |
| bool | IsIncluded (const std::string &filename) const |
| bool | GetPosition (const std::string &filename, const Position **pos) const |
Private Attributes | |
| Container | container_ |
Definition at line 16 of file IncludedFiles.h.
| typedef std::map<std::string, Position> Gaudi::Parsers::IncludedFiles::Container |
Definition at line 18 of file IncludedFiles.h.
| bool Gaudi::Parsers::IncludedFiles::AddFile | ( | const std::string & | filename, |
| const Position & | from | ||
| ) |
Definition at line 20 of file IncludedFiles.cpp.
{
if (!IsIncluded(filename)) {
container_.insert(Container::value_type(filename, from));
return true;
}
return false;
}
| bool Gaudi::Parsers::IncludedFiles::GetPosition | ( | const std::string & | filename, |
| const Position ** | pos | ||
| ) | const |
Definition at line 29 of file IncludedFiles.cpp.
{
Container::const_iterator iter = container_.find(filename);
if (iter != container_.end()) {
*pos = &iter->second;
assert(pos != NULL);
return true;
}
return false;
}
| bool Gaudi::Parsers::IncludedFiles::IsIncluded | ( | const std::string & | filename ) | const |
Definition at line 16 of file IncludedFiles.cpp.
{
return container_.find(filename) != container_.end();
}
Container Gaudi::Parsers::IncludedFiles::container_ [private] |
Definition at line 24 of file IncludedFiles.h.