#include <src/JobOptionsSvc/Catalog.h>
Definition at line 28 of file Catalog.h.
typedef std::map<std::string, PropertySet> Gaudi::Parsers::Catalog::CatalogSet |
typedef CatalogSet::const_iterator Gaudi::Parsers::Catalog::const_iterator |
typedef CatalogSet::iterator Gaudi::Parsers::Catalog::iterator |
typedef CatalogSet::value_type Gaudi::Parsers::Catalog::value_type |
bool Gaudi::Parsers::Catalog::Add |
( |
Property * |
property | ) |
|
Definition at line 28 of file Catalog.cpp.
30 auto it =
catalog_.find(property->ClientName());
33 properties.insert(property);
37 it->second.erase(*property);
38 it->second.insert(property);
template<typename Value >
bool Gaudi::Parsers::Catalog::Add |
( |
std::string |
client, |
|
|
std::string |
property, |
|
|
const Value & |
value |
|
) |
| |
|
inline |
Definition at line 62 of file Catalog.h.
65 return Add(
new Property(PropertyName(std::move(client), std::move(property)), PropertyValue(
value)));
Property base class allowing Property* collections to be "homogeneous".
bool Add(Property *property)
iterator Gaudi::Parsers::Catalog::begin |
( |
| ) |
|
|
inline |
std::vector< std::string > Gaudi::Parsers::Catalog::ClientNames |
( |
| ) |
const |
Definition at line 21 of file Catalog.cpp.
22 std::vector<std::string> result;
constexpr struct select1st_t select1st
auto begin(reverse_wrapper< T > &w)
auto end(reverse_wrapper< T > &w)
iterator Gaudi::Parsers::Catalog::end |
( |
| ) |
|
|
inline |
std::ostream & Gaudi::Parsers::Catalog::fillStream |
( |
std::ostream & |
out | ) |
const |
print the content of the catalogue to std::ostream
Definition at line 66 of file Catalog.cpp.
68 o <<
"// " << std::string(82,
'=') << std::endl
69 <<
"// Parser catalog " << std::endl
70 <<
"// " << std::string(82,
'=') << std::endl ;
72 size_t nComponents = 0 ;
73 size_t nProperties = 0 ;
75 for (
const auto& client :
catalog_) {
77 % client.first % client.second.size() << std::endl ;
79 nProperties += client.second.size() ;
80 for (
const auto& current : client.second) {
83 % current.ValueAsString()
87 o <<
"// " << std::string(82,
'=') <<
'\n'
88 <<
boost::format(
"// End parser catalog #Components=%1% #Properties=%2%")
89 % nComponents % nProperties <<
'\n'
90 <<
"// " << std::string(82,
'=') << std::endl ;
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
gp::Property * Gaudi::Parsers::Catalog::Find |
( |
const std::string & |
client, |
|
|
const std::string & |
name |
|
) |
| |
Definition at line 43 of file Catalog.cpp.
46 if (it ==
catalog_.end())
return nullptr;
48 auto pit = std::find_if(it->second.begin(), it->second.end(),
49 Property::Equal(
name));
50 return (pit != it->second.end()) ? &*pit :
nullptr;
std::string Gaudi::Parsers::Catalog::ToString |
( |
| ) |
const |
Definition at line 54 of file Catalog.cpp.
56 for (
const auto& client :
catalog_) {
57 for (
const auto& current : client.second) {
58 result += current.ToString()+
"\n";
The documentation for this class was generated from the following files: