// // Copyright (c) ZeroC, Inc. All rights reserved. // #include #include using namespace std; using namespace IceStorm; TraceLevels::TraceLevels(const string name, const shared_ptr& properties, shared_ptr theLogger) : topicMgr(0), topicMgrCat("TopicManager"), topic(0), topicCat("Topic"), subscriber(0), subscriberCat("Subscriber"), election(0), electionCat("Election"), replication(0), replicationCat("Replication"), logger(move(theLogger)) { const string keyBase = name + ".Trace."; const_cast(topicMgr) = properties->getPropertyAsInt(keyBase + topicMgrCat); const_cast(topic) = properties->getPropertyAsInt(keyBase + topicCat); const_cast(subscriber) = properties->getPropertyAsInt(keyBase + subscriberCat); const_cast(election) = properties->getPropertyAsInt(keyBase + electionCat); }