#include <Catalog.h>
List of all members.
Detailed Description
Definition at line 29 of file Catalog.h.
Member Typedef Documentation
Member Function Documentation
| 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());
if (it == catalog_.end()) {
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 57 of file Catalog.h.
{
return Add(new Property(PropertyName(client, property), PropertyValue(value)));
}
| iterator Gaudi::Parsers::Catalog::begin |
( |
void |
) |
[inline] |
| iterator Gaudi::Parsers::Catalog::end |
( |
void |
) |
[inline] |
print the content of the catalogue to std::ostream
Definition at line 61 of file Catalog.cpp.
{
o << "// " << std::string(82,'=') << std::endl
<< "// Parser catalog " << std::endl
<< "// " << std::string(82,'=') << std::endl ;
size_t nComponents = 0 ;
size_t nProperties = 0 ;
BOOST_FOREACH(const CatalogSet::value_type& client, catalog_) {
o << boost::format("// Properties of '%1%' %|43t|# = %2%" )
% 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) {
o << boost::format("%1% %|44t| = %2% ; ")
% current->FullName()
% current->ValueAsString()
<< std::endl;
}
}
o << "// " << std::string(82,'=') << std::endl
<< boost::format("// End parser catalog #Components=%1% #Properties=%2%")
% nComponents % nProperties << std::endl
<< "// " << std::string(82,'=') << std::endl ;
return o ;
}
Definition at line 36 of file Catalog.cpp.
{
CatalogSet::iterator it = catalog_.find(client);
if (it == catalog_.end()) return NULL;
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.
{
std::string result;
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;
}
Member Data Documentation
CatalogSet Gaudi::Parsers::Catalog::catalog_ [private] |
The documentation for this class was generated from the following files:
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r2p1/GaudiCoreSvc/src/JobOptionsSvc/Catalog.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r2p1/GaudiCoreSvc/src/JobOptionsSvc/Catalog.cpp