#include <SvcCatalog.h>
| SvcCatalog::SvcCatalog |
( |
| ) |
|
| SvcCatalog::~SvcCatalog |
( |
| ) |
|
|
virtual |
Definition at line 23 of file SvcCatalog.cpp.
{
for (ObjectsT::const_iterator cur=
m_catalog->begin();
{
for(PropertiesT::const_iterator prop=cur->second.begin();
prop!=cur->second.end(); prop++)
{ if(NULL != *prop){ delete *prop; } }
}
}
| StatusCode SvcCatalog::addProperty |
( |
const std::string & |
client, |
|
|
const Property * |
property |
|
) |
| |
Definition at line 36 of file SvcCatalog.cpp.
{
if ( props != 0 ){
props->push_back(property);
}else{
toInsert.push_back(property);
m_catalog->insert(std::pair<std::string,PropertiesT>(client,toInsert));
}
}
| std::ostream & SvcCatalog::fillStream |
( |
std::ostream & |
o | ) |
const |
dump the content of catalog to std::ostream
Definition at line 101 of file SvcCatalog.cpp.
{
for ( ObjectsT::const_iterator iclient =
m_catalog->begin();
{
o << "Client '" << iclient->first << "'" << std::endl ;
for ( PropertiesT::const_iterator ip = props.begin() ;
props.end() != ip ; ++ip )
{
if ( 0 == p ) { continue ; }
o << "\t" << (*p) << std::endl ;
}
}
return o ;
}
Definition at line 82 of file SvcCatalog.cpp.
{
ObjectsT::iterator result;
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.
{
for(result = props->begin();result!=props->end();result++){
if(boost::to_lower_copy((*result)->name()) == boost::to_lower_copy(name))
{ return true; }
}
return false;
}
| std::vector< std::string > SvcCatalog::getClients |
( |
| ) |
const |
Definition at line 73 of file SvcCatalog.cpp.
{
std::vector<std::string> result;
for (ObjectsT::const_iterator cur =
m_catalog->begin();
cur !=
m_catalog->end(); cur++) { result.push_back(cur->first); }
return result;
}
| StatusCode SvcCatalog::removeProperty |
( |
const std::string & |
client, |
|
|
const std::string & |
name |
|
) |
| |
Definition at line 53 of file SvcCatalog.cpp.
{
if (props)
{
PropertiesT::iterator toRemove;
{
delete *toRemove;
props->erase(toRemove);
}
}
}
The documentation for this class was generated from the following files:
- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r2/GaudiCoreSvc/src/JobOptionsSvc/SvcCatalog.h
- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r2/GaudiCoreSvc/src/JobOptionsSvc/SvcCatalog.cpp