#include <ServiceWebRegistry.h>
Public Member Functions | |
std::vector< ServiceWeb * > | getWebs () |
void | invoke (xgi::Input *, xgi::Output *, const std::string &) |
void | publish (xdata::InfoSpace *) |
void | registerWeb (std::string &name, ServiceWeb *cl) |
ServiceWebRegistry (const edm::ParameterSet &) | |
Private Types | |
typedef std::map< std::string, ServiceWeb * > | dct |
typedef dct::iterator | idct |
Private Member Functions | |
void | clear () |
Private Attributes | |
dct | clm_ |
Friends | |
class | FWEPWrapper |
Definition at line 27 of file ServiceWebRegistry.h.
typedef std::map<std::string, ServiceWeb*> evf::ServiceWebRegistry::dct [private] |
Definition at line 46 of file ServiceWebRegistry.h.
typedef dct::iterator evf::ServiceWebRegistry::idct [private] |
Definition at line 47 of file ServiceWebRegistry.h.
evf::ServiceWebRegistry::ServiceWebRegistry | ( | const edm::ParameterSet & | ps | ) |
Definition at line 7 of file ServiceWebRegistry.cc.
References gather_cfg::cout.
{ std::cout << "Service registry constructor at " << std::hex << (unsigned long) this << std::dec << std::endl; }
void evf::ServiceWebRegistry::clear | ( | void | ) | [private] |
Definition at line 54 of file ServiceWebRegistry.cc.
References clm_, and gather_cfg::cout.
Referenced by evf::FWEPWrapper::stopAndHalt().
std::vector< ServiceWeb * > evf::ServiceWebRegistry::getWebs | ( | ) |
Definition at line 13 of file ServiceWebRegistry.cc.
References clm_, gather_cfg::cout, and i.
{ std::cout << " service web registry " << std::hex << (unsigned long) this << std::dec << " has " << clm_.size() << " services registered " << std::endl; std::vector<ServiceWeb*> retval; for(idct i = clm_.begin(); i != clm_.end(); i++) { std::cout << "service " << (*i).first << " has web " << std::endl; retval.push_back((*i).second); } return retval; }
void evf::ServiceWebRegistry::invoke | ( | xgi::Input * | in, |
xgi::Output * | out, | ||
const std::string & | name | ||
) |
void evf::ServiceWebRegistry::publish | ( | xdata::InfoSpace * | is | ) |
Definition at line 43 of file ServiceWebRegistry.cc.
Referenced by evf::FWEPWrapper::init().
void evf::ServiceWebRegistry::registerWeb | ( | std::string & | name, |
ServiceWeb * | cl | ||
) | [inline] |
Definition at line 32 of file ServiceWebRegistry.h.
References clm_, and gather_cfg::cout.
{ std::cout << "**********registering " << name << " to service web registry " << std::hex << (unsigned long) this << std::dec << std::endl; clm_.insert(std::pair<std::string, ServiceWeb*>(name,cl)); std::cout << "**********registry size now " << clm_.size() << std::endl; // CAN ONLY BIND TO xdaq::Application methods... // xgi::bind(cl, func, name); }
friend class FWEPWrapper [friend] |
Definition at line 50 of file ServiceWebRegistry.h.
dct evf::ServiceWebRegistry::clm_ [private] |
Definition at line 49 of file ServiceWebRegistry.h.
Referenced by clear(), getWebs(), invoke(), publish(), and registerWeb().