summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/TraceLevels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/src/IceE/TraceLevels.cpp')
-rw-r--r--cppe/src/IceE/TraceLevels.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/cppe/src/IceE/TraceLevels.cpp b/cppe/src/IceE/TraceLevels.cpp
new file mode 100644
index 00000000000..f2a9264587f
--- /dev/null
+++ b/cppe/src/IceE/TraceLevels.cpp
@@ -0,0 +1,38 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICEE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#include <IceE/TraceLevels.h>
+#include <IceE/Properties.h>
+
+using namespace std;
+using namespace IceE;
+using namespace IceEInternal;
+
+void IceEInternal::incRef(TraceLevels* p) { p->__incRef(); }
+void IceEInternal::decRef(TraceLevels* p) { p->__decRef(); }
+
+IceEInternal::TraceLevels::TraceLevels(const PropertiesPtr& properties) :
+ network(0),
+ networkCat("Network"),
+ protocol(0),
+ protocolCat("Protocol"),
+ retry(0),
+ retryCat("Retry"),
+ location(0),
+ locationCat("Location"),
+ slicing(0),
+ slicingCat("Slicing")
+{
+ const string keyBase = "IceE.Trace.";
+ const_cast<int&>(network) = properties->getPropertyAsInt(keyBase + networkCat);
+ const_cast<int&>(protocol) = properties->getPropertyAsInt(keyBase + protocolCat);
+ const_cast<int&>(retry) = properties->getPropertyAsInt(keyBase + retryCat);
+ const_cast<int&>(location) = properties->getPropertyAsInt(keyBase + locationCat);
+ const_cast<int&>(slicing) = properties->getPropertyAsInt(keyBase + slicingCat);
+}