summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/TraceLevels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceSSL/TraceLevels.cpp')
-rw-r--r--cpp/src/IceSSL/TraceLevels.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/cpp/src/IceSSL/TraceLevels.cpp b/cpp/src/IceSSL/TraceLevels.cpp
new file mode 100644
index 00000000000..33b634e323a
--- /dev/null
+++ b/cpp/src/IceSSL/TraceLevels.cpp
@@ -0,0 +1,35 @@
+// **********************************************************************
+//
+// Copyright (c) 2001
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#include <IceSSL/TraceLevels.h>
+#include <Ice/Communicator.h>
+#include <Ice/Properties.h>
+#include <Ice/ProtocolPluginFacade.h>
+
+using namespace std;
+using namespace Ice;
+
+void IceInternal::incRef(IceSSL::TraceLevels* p) { p->__incRef(); }
+void IceInternal::decRef(IceSSL::TraceLevels* p) { p->__decRef(); }
+
+IceSSL::TraceLevels::TraceLevels(const IceInternal::ProtocolPluginFacadePtr& protocolPluginFacade) :
+ security(0),
+ securityCat("Security")
+{
+ const_cast<int&>(network) = protocolPluginFacade->getNetworkTraceLevel();
+ networkCat = protocolPluginFacade->getNetworkTraceCategory();
+
+ PropertiesPtr properties = protocolPluginFacade->getCommunicator()->getProperties();
+ const_cast<int&>(security) = properties->getPropertyAsInt("IceSSL.Trace.Security");
+}
+
+IceSSL::TraceLevels::~TraceLevels()
+{
+}