#include <InfoRegister.h>
Public Member Functions | |
InfoRegistrar * | addRegistrar (XMLNode doc) |
void | addService (InfoRegister *reg, const std::list< std::string > &ids, XMLNode cfg=XMLNode()) |
void | removeService (InfoRegister *reg) |
Singleton class for scanning configuration and storing refernces to registration elements.
InfoRegistrar* Arc::InfoRegisterContainer::addRegistrar | ( | XMLNode | doc | ) |
Adds ISISes to list of handled services.
Supplied configuration document is scanned for InfoRegistrar elements and those are turned into InfoRegistrar classes for handling connection to ISIS service each.
void Arc::InfoRegisterContainer::addService | ( | InfoRegister * | reg, | |
const std::list< std::string > & | ids, | |||
XMLNode | cfg = XMLNode() | |||
) |
Adds service to list of handled.
This method must be called first time after last addRegistrar was called - services will be only associated with ISISes which are already added. Argument ids contains list of ISIS identifiers to which service is associated. If ids is empty then service is associated to all ISISes currently added. If argument cfg is available and no ISISes are configured then addRegistrars is called with cfg used as configuration document.
void Arc::InfoRegisterContainer::removeService | ( | InfoRegister * | reg | ) |
This method must be called if service being destroyed.