blob: f397356b32afad5c6a09cb7c3e1321aebe3f33c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
// **********************************************************************
//
// Copyright (c) 2001
// MutableRealms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************
#include <Ice/TraceLevels.h>
#include <Ice/Properties.h>
using namespace std;
using namespace Ice;
using namespace IceInternal;
void IceInternal::incRef(TraceLevels* p) { p->__incRef(); }
void IceInternal::decRef(TraceLevels* p) { p->__decRef(); }
IceInternal::TraceLevels::TraceLevels(const PropertiesPtr& properties) :
network(0),
networkCat("Network"),
protocol(0),
protocolCat("Protocol"),
retry(0),
retryCat("Retry"),
security(0),
securityCat("Security")
{
string value;
const string keyBase = "Ice.Trace.";
value = properties->getProperty(keyBase + networkCat);
if (!value.empty())
{
const_cast<int&>(network) = atoi(value.c_str());
}
value = properties->getProperty(keyBase + protocolCat);
if (!value.empty())
{
const_cast<int&>(protocol) = atoi(value.c_str());
}
value = properties->getProperty(keyBase + retryCat);
if (!value.empty())
{
const_cast<int&>(retry) = atoi(value.c_str());
}
value = properties->getProperty(keyBase + securityCat);
if (!value.empty())
{
const_cast<int&>(security) = atoi(value.c_str());
}
}
IceInternal::TraceLevels::~TraceLevels()
{
}
|