#include <src/JobOptionsSvc/SvcCatalog.h>
SvcCatalog::SvcCatalog |
( |
| ) |
|
Definition at line 20 of file SvcCatalog.cpp.
std::map< std::string, PropertiesT > ObjectsT
SvcCatalog::~SvcCatalog |
( |
| ) |
|
|
virtual |
Definition at line 23 of file SvcCatalog.cpp.
25 for (ObjectsT::const_iterator cur=
m_catalog->begin();
28 for(PropertiesT::const_iterator prop=cur->second.begin();
29 prop!=cur->second.end(); prop++)
30 {
if(NULL != *prop){
delete *prop; } }
StatusCode SvcCatalog::addProperty |
( |
const std::string & |
client, |
|
|
const Property * |
property |
|
) |
| |
Definition at line 36 of file SvcCatalog.cpp.
42 props->push_back(property);
45 toInsert.push_back(property);
46 m_catalog->insert(std::pair<std::string,PropertiesT>(client,toInsert));
PropertiesT * findProperties(const std::string &client) const
const std::string & name() const
property name
StatusCode removeProperty(const std::string &client, const std::string &name)
std::vector< const Property * > PropertiesT
std::ostream & SvcCatalog::fillStream |
( |
std::ostream & |
o | ) |
const |
dump the content of catalog to std::ostream
Definition at line 101 of file SvcCatalog.cpp.
104 for ( ObjectsT::const_iterator iclient =
m_catalog->begin();
105 m_catalog->end() != iclient ; ++iclient )
108 o <<
"Client '" << iclient->first <<
"'" << std::endl ;
109 for ( PropertiesT::const_iterator ip = props.begin() ;
110 props.end() != ip ; ++ip )
113 if ( 0 == p ) { continue ; }
114 o <<
"\t" << (*p) << std::endl ;
Property base class allowing Property* collections to be "homogeneous".
std::vector< const Property * > PropertiesT
Definition at line 82 of file SvcCatalog.cpp.
84 ObjectsT::iterator result;
86 return &result->second;
bool SvcCatalog::findProperty |
( |
SvcCatalog::PropertiesT * |
props, |
|
|
const std::string & |
name, |
|
|
PropertiesT::iterator & |
result |
|
) |
| |
|
private |
Definition at line 90 of file SvcCatalog.cpp.
94 for(result = props->begin();result!=props->end();result++){
95 if(boost::to_lower_copy((*result)->name()) == boost::to_lower_copy(name))
std::vector< std::string > SvcCatalog::getClients |
( |
| ) |
const |
Definition at line 73 of file SvcCatalog.cpp.
75 std::vector<std::string> result;
76 for (ObjectsT::const_iterator cur =
m_catalog->begin();
77 cur !=
m_catalog->end(); cur++) { result.push_back(cur->first); }
Definition at line 71 of file SvcCatalog.cpp.
PropertiesT * findProperties(const std::string &client) const
StatusCode SvcCatalog::removeProperty |
( |
const std::string & |
client, |
|
|
const std::string & |
name |
|
) |
| |
Definition at line 53 of file SvcCatalog.cpp.
59 PropertiesT::iterator toRemove;
63 props->erase(toRemove);
PropertiesT * findProperties(const std::string &client) const
bool findProperty(PropertiesT *props, const std::string &name, PropertiesT::iterator &result)
std::vector< const Property * > PropertiesT
The documentation for this class was generated from the following files: