// ********************************************************************** // // Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** #include #include using namespace std; using namespace Ice; using namespace IceInternal; IceUtil::Shared* IceInternal::upCast(TraceLevels* p) { return p; } IceInternal::TraceLevels::TraceLevels(const PropertiesPtr& properties) : network(0), networkCat("Network"), protocol(0), protocolCat("Protocol"), retry(0), retryCat("Retry"), location(0), locationCat("Locator"), slicing(0), slicingCat("Slicing"), gc(0), gcCat("GC"), threadPool(0), threadPoolCat("ThreadPool") { const string keyBase = "Ice.Trace."; const_cast(network) = properties->getPropertyAsInt(keyBase + networkCat); const_cast(protocol) = properties->getPropertyAsInt(keyBase + protocolCat); const_cast(retry) = properties->getPropertyAsInt(keyBase + retryCat); const_cast(location) = properties->getPropertyAsInt(keyBase + locationCat); const_cast(slicing) = properties->getPropertyAsInt(keyBase + slicingCat); const_cast(gc) = properties->getPropertyAsInt(keyBase + gcCat); const_cast(threadPool) = properties->getPropertyAsInt(keyBase + threadPoolCat); }