#include <Catalog.h>
Definition at line 29 of file Catalog.h.
| bool Gaudi::Parsers::Catalog::Add |
( |
Property * |
property | ) |
|
Definition at line 21 of file Catalog.cpp.
{
assert( property != NULL);
CatalogSet::iterator it =
catalog_.
find(property->ClientName());
CatalogSet::mapped_type properties;
properties.insert(property);
catalog_.
insert(CatalogSet::value_type(property->ClientName(), properties));
return true;
}
it->second.erase(*property);
it->second.insert(property);
return true;
}
template<typename Value >
| bool Gaudi::Parsers::Catalog::Add |
( |
const std::string & |
client, |
|
|
const std::string & |
property, |
|
|
const Value & |
value |
|
) |
| |
|
inline |
Definition at line 63 of file Catalog.h.
{
return Add(
new Property(PropertyName(client, property), PropertyValue(value)));
}
| iterator Gaudi::Parsers::Catalog::begin |
( |
| ) |
|
|
inline |
Definition at line 13 of file Catalog.cpp.
{
BOOST_FOREACH(const CatalogSet::value_type& prop, catalog_) {
}
return result;
}
| iterator Gaudi::Parsers::Catalog::end |
( |
| ) |
|
|
inline |
print the content of the catalogue to std::ostream
Definition at line 61 of file Catalog.cpp.
{
size_t nComponents = 0 ;
size_t nProperties = 0 ;
BOOST_FOREACH(const CatalogSet::value_type& client, catalog_) {
% client.first % client.second.size() <<
std::endl ;
++nComponents ;
nProperties += client.second.size() ;
for (CatalogSet::mapped_type::const_iterator current = client.second.begin();
current != client.second.end(); ++current) {
% current->FullName()
% current->ValueAsString()
}
}
<<
boost::format(
"// End parser catalog #Components=%1% #Properties=%2%")
% nComponents % nProperties << std::endl
return o ;
}
Definition at line 36 of file Catalog.cpp.
{
CatalogSet::mapped_type::iterator pit =
std::find_if(it->second.begin(),
it->second.end(), Property::Equal(name));
if (pit == it->second.end()) return NULL;
return &*pit;
}
| std::string Gaudi::Parsers::Catalog::ToString |
( |
| ) |
const |
Definition at line 48 of file Catalog.cpp.
{
BOOST_FOREACH(const CatalogSet::value_type& client, catalog_) {
for (CatalogSet::mapped_type::const_iterator current = client.second.begin();
current != client.second.end(); ++current) {
result += current->ToString()+"\n";
}
}
return result;
}
The documentation for this class was generated from the following files:
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r6/GaudiCoreSvc/src/JobOptionsSvc/Catalog.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r6/GaudiCoreSvc/src/JobOptionsSvc/Catalog.cpp