#include <src/JobOptionsSvc/SvcCatalog.h>
SvcCatalog::SvcCatalog |
( |
| ) |
|
|
default |
SvcCatalog::~SvcCatalog |
( |
| ) |
|
Definition at line 26 of file SvcCatalog.cpp.
30 for (
auto & prop : cur.second)
delete prop;
std::map< std::string, PropertiesT > m_catalog
StatusCode SvcCatalog::addProperty |
( |
const std::string & |
client, |
|
|
const Property * |
property |
|
) |
| |
Definition at line 35 of file SvcCatalog.cpp.
41 props->push_back(property);
const std::string & name() const
property name
StatusCode removeProperty(const std::string &client, const std::string &name)
const PropertiesT * findProperties(const std::string &client) const
std::map< std::string, PropertiesT > m_catalog
std::vector< const Property * > PropertiesT
std::ostream & SvcCatalog::fillStream |
( |
std::ostream & |
o | ) |
const |
dump the content of catalog to std::ostream
Definition at line 103 of file SvcCatalog.cpp.
108 o <<
"Client '" << iclient.first <<
"'" << std::endl ;
109 for (
const auto& p : iclient.second )
111 if ( p ) o <<
"\t" << (*p) << std::endl ;
std::map< std::string, PropertiesT > m_catalog
Definition at line 76 of file SvcCatalog.cpp.
79 return ( result !=
m_catalog.end() ) ? &result->second
std::map< std::string, PropertiesT > m_catalog
Definition at line 84 of file SvcCatalog.cpp.
87 return ( result !=
m_catalog.end() ) ? &result->second
std::map< std::string, PropertiesT > m_catalog
std::pair< bool, SvcCatalog::PropertiesT::iterator > SvcCatalog::findProperty |
( |
SvcCatalog::PropertiesT & |
props, |
|
|
const std::string & |
name |
|
) |
| |
|
private |
Definition at line 93 of file SvcCatalog.cpp.
98 return boost::iequals(
name, prop->
name());
const std::string & name() const
property name
auto begin(reverse_wrapper< T > &w)
auto end(reverse_wrapper< T > &w)
Property base class allowing Property* collections to be "homogeneous".
std::vector< std::string > SvcCatalog::getClients |
( |
| ) |
const |
Definition at line 67 of file SvcCatalog.cpp.
69 std::vector<std::string> result; result.reserve(
m_catalog.size());
constexpr struct select1st_t select1st
auto begin(reverse_wrapper< T > &w)
auto end(reverse_wrapper< T > &w)
std::map< std::string, PropertiesT > m_catalog
Definition at line 65 of file SvcCatalog.cpp.
const PropertiesT * findProperties(const std::string &client) const
StatusCode SvcCatalog::removeProperty |
( |
const std::string & |
client, |
|
|
const std::string & |
name |
|
) |
| |
Definition at line 49 of file SvcCatalog.cpp.
57 props->erase(res.second);
const PropertiesT * findProperties(const std::string &client) const
std::pair< bool, PropertiesT::iterator > findProperty(PropertiesT &props, const std::string &name)
std::map<std::string, PropertiesT> SvcCatalog::m_catalog |
|
private |
The documentation for this class was generated from the following files: