#include </builds/gaudi/Gaudi/GaudiCoreSvc/src/JobOptionsSvc/Catalog.h>
Definition at line 22 of file Catalog.h.
◆ CatalogSet
◆ const_iterator
◆ iterator
◆ PropertySet
◆ value_type
◆ Add() [1/2]
| bool Gaudi::Parsers::Catalog::Add |
( |
Property * |
property | ) |
|
Definition at line 33 of file Catalog.cpp.
35 auto it =
catalog_.find( property->ClientName() );
42 it->second.erase( *property );
43 it->second.insert( property );
◆ Add() [2/2]
template<typename Value >
| bool Gaudi::Parsers::Catalog::Add |
( |
std::string |
client, |
|
|
std::string |
property, |
|
|
const Value & |
value |
|
) |
| |
|
inline |
Definition at line 54 of file Catalog.h.
55 return Add(
new Property( PropertyName( std::move( client ), std::move( property ) ), PropertyValue( value ) ) );
◆ begin() [1/2]
| iterator Gaudi::Parsers::Catalog::begin |
( |
| ) |
|
|
inline |
◆ begin() [2/2]
◆ ClientNames()
| std::vector< std::string > Gaudi::Parsers::Catalog::ClientNames |
( |
| ) |
const |
Definition at line 28 of file Catalog.cpp.
29 std::vector<std::string> result;
◆ end() [1/2]
| iterator Gaudi::Parsers::Catalog::end |
( |
| ) |
|
|
inline |
◆ end() [2/2]
◆ fillStream()
| std::ostream & Gaudi::Parsers::Catalog::fillStream |
( |
std::ostream & |
out | ) |
const |
print the content of the catalogue to std::ostream
Definition at line 63 of file Catalog.cpp.
64 o << R
"(// ==================================================================================
66 // ==================================================================================
69 size_t nComponents = 0;
70 size_t nProperties = 0;
72 for (
const auto& client :
catalog_ ) {
73 o <<
fmt::format(
"// Properties of {:<25} # = {}",
fmt::format(
"'{}'", client.first ), client.second.size() );
75 nProperties += client.second.size();
76 for (
const auto& current : client.second ) {
77 o <<
fmt::format(
"{:<44} = {} ;", current.FullName(), current.ValueAsString() );
80 o <<
fmt::format( R
"(// ==================================================================================
81 // End parser catalog #Components={} #Properties={}
82 // ==================================================================================
◆ Find()
| gp::Property * Gaudi::Parsers::Catalog::Find |
( |
std::string_view |
client, |
|
|
std::string_view |
name |
|
) |
| |
Definition at line 47 of file Catalog.cpp.
49 if ( it ==
catalog_.end() )
return nullptr;
51 auto pit = std::find_if( it->second.begin(), it->second.end(),
52 [&](
const Property& property ) { return name == property.NameInClient(); } );
54 return ( pit != it->second.end() ) ? &*pit :
nullptr;
◆ ToString()
| std::string Gaudi::Parsers::Catalog::ToString |
( |
| ) |
const |
Definition at line 56 of file Catalog.cpp.
58 for (
const auto& client :
catalog_ ) {
59 for (
const auto& current : client.second ) { result += current.ToString() +
"\n"; }
◆ catalog_
The documentation for this class was generated from the following files: