diff options
Diffstat (limited to 'cpp/src/Ice/SslSystem.h')
-rw-r--r-- | cpp/src/Ice/SslSystem.h | 144 |
1 files changed, 72 insertions, 72 deletions
diff --git a/cpp/src/Ice/SslSystem.h b/cpp/src/Ice/SslSystem.h index 1785ba15cf6..c3376bfa7ab 100644 --- a/cpp/src/Ice/SslSystem.h +++ b/cpp/src/Ice/SslSystem.h @@ -1,72 +1,72 @@ -// **********************************************************************
-//
-// Copyright (c) 2001
-// MutableRealms, Inc.
-// Huntsville, AL, USA
-//
-// All Rights Reserved
-//
-// **********************************************************************
-
-
-#ifndef ICE_SSL_SYSTEM_H
-#define ICE_SSL_SYSTEM_H
-
-#include <string>
-#include <Ice/SslConnection.h>
-
-namespace IceSecurity
-{
-
-namespace Ssl
-{
-
-using std::string;
-
-class Factory;
-
-// TODO: Can we derive this from Shared? How hard would that be?
-
-class System
-{
-
-public:
- inline string getSystemID() const { return _systemID; };
-
- virtual bool isConfigLoaded() = 0;
- virtual void loadConfig() = 0;
- virtual void shutdown() = 0;
-
- virtual Connection* createServerConnection(int) = 0;
- virtual Connection* createClientConnection(int) = 0;
-
- void setTrace(TraceLevelsPtr traceLevels) { _traceLevels = traceLevels; };
- bool isTraceSet() const { return (_traceLevels == 0 ? false : true); };
-
- void setLogger(Ice::LoggerPtr traceLevels) { _logger = traceLevels; };
- bool isLoggerSet() const { return (_logger == 0 ? false : true); };
-
-protected:
-
- System(string&);
- virtual ~System();
-
- // Reference counting.
- inline void incRef() { _refCount++; };
- inline bool decRef() { return (--_refCount ? true : false); };
-
- string _systemID;
- int _refCount;
-
- TraceLevelsPtr _traceLevels;
- Ice::LoggerPtr _logger;
-
-friend class Factory;
-
-};
-
-}
-
-}
-
-#endif
+// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + + +#ifndef ICE_SSL_SYSTEM_H +#define ICE_SSL_SYSTEM_H + +#include <string> +#include <Ice/SslConnection.h> + +namespace IceSecurity +{ + +namespace Ssl +{ + +using std::string; + +class Factory; + +// TODO: Can we derive this from Shared? How hard would that be? + +class System +{ + +public: + inline string getSystemID() const { return _systemID; }; + + virtual bool isConfigLoaded() = 0; + virtual void loadConfig() = 0; + virtual void shutdown() = 0; + + virtual Connection* createServerConnection(int) = 0; + virtual Connection* createClientConnection(int) = 0; + + void setTrace(TraceLevelsPtr traceLevels) { _traceLevels = traceLevels; }; + bool isTraceSet() const { return (_traceLevels == 0 ? false : true); }; + + void setLogger(Ice::LoggerPtr traceLevels) { _logger = traceLevels; }; + bool isLoggerSet() const { return (_logger == 0 ? false : true); }; + +protected: + + System(string&); + virtual ~System(); + + // Reference counting. + inline void incRef() { _refCount++; }; + inline bool decRef() { return (--_refCount ? true : false); }; + + string _systemID; + int _refCount; + + TraceLevelsPtr _traceLevels; + Ice::LoggerPtr _logger; + +friend class Factory; + +}; + +} + +} + +#endif |