|
|
|
@ -29,7 +29,7 @@ CZMQNotificationInterface::~CZMQNotificationInterface()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CZMQNotificationInterface* CZMQNotificationInterface::CreateWithArguments(const std::map<std::string, std::string> &args)
|
|
|
|
|
CZMQNotificationInterface* CZMQNotificationInterface::Create()
|
|
|
|
|
{
|
|
|
|
|
CZMQNotificationInterface* notificationInterface = NULL;
|
|
|
|
|
std::map<std::string, CZMQNotifierFactory> factories;
|
|
|
|
@ -42,11 +42,11 @@ CZMQNotificationInterface* CZMQNotificationInterface::CreateWithArguments(const
|
|
|
|
|
|
|
|
|
|
for (std::map<std::string, CZMQNotifierFactory>::const_iterator i=factories.begin(); i!=factories.end(); ++i)
|
|
|
|
|
{
|
|
|
|
|
std::map<std::string, std::string>::const_iterator j = args.find("-zmq" + i->first);
|
|
|
|
|
if (j!=args.end())
|
|
|
|
|
std::string arg("-zmq" + i->first);
|
|
|
|
|
if (IsArgSet(arg))
|
|
|
|
|
{
|
|
|
|
|
CZMQNotifierFactory factory = i->second;
|
|
|
|
|
std::string address = j->second;
|
|
|
|
|
std::string address = GetArg(arg, "");
|
|
|
|
|
CZMQAbstractNotifier *notifier = factory();
|
|
|
|
|
notifier->SetType(i->first);
|
|
|
|
|
notifier->SetAddress(address);
|
|
|
|
|