| # Gaudi Framework, version v23r1 |

Home |  | Generated: Wed Feb 29 2012

Public Types | Public Member Functions | Private Attributes

# Gaudi::Parsers::IncludedFiles Class Reference

`#include <IncludedFiles.h>`

Collaboration diagram for Gaudi::Parsers::IncludedFiles:
[legend]

List of all members.

## 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_

## Detailed Description

Definition at line 16 of file IncludedFiles.h.

## Member Typedef Documentation

typedef std::map<std::string, Position> Gaudi::Parsers::IncludedFiles::Container

Definition at line 18 of file IncludedFiles.h.

## Member Function Documentation

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();
    }

## Member Data Documentation

Container Gaudi::Parsers::IncludedFiles::container_`[private]`

Definition at line 24 of file IncludedFiles.h.

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r1/GaudiCoreSvc/src/JobOptionsSvc/IncludedFiles.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r1/GaudiCoreSvc/src/JobOptionsSvc/IncludedFiles.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines