diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-04-26 02:53:33 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-04-26 02:53:33 +0000 |
commit | 0d715a1edd4484c9b7074c9c3cb283d468a538bc (patch) | |
tree | 45934688c11aa189731ae51f07032050affd12ef /cpp/src/IceSSL/TraceLevels.cpp | |
parent | Win32 fix (diff) | |
download | ice-0d715a1edd4484c9b7074c9c3cb283d468a538bc.tar.bz2 ice-0d715a1edd4484c9b7074c9c3cb283d468a538bc.tar.xz ice-0d715a1edd4484c9b7074c9c3cb283d468a538bc.zip |
Renaming Ice.Trace.Security to IceSSL.Trace.Security Cleaning up IceSSL
dependencies on Ice core
Diffstat (limited to 'cpp/src/IceSSL/TraceLevels.cpp')
-rw-r--r-- | cpp/src/IceSSL/TraceLevels.cpp | 35 |
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() +{ +} |