diff options
Diffstat (limited to 'cpp/include/Ice/LoggerUtil.h')
-rw-r--r-- | cpp/include/Ice/LoggerUtil.h | 206 |
1 files changed, 103 insertions, 103 deletions
diff --git a/cpp/include/Ice/LoggerUtil.h b/cpp/include/Ice/LoggerUtil.h index c1b9a8c53b9..1444112da5c 100644 --- a/cpp/include/Ice/LoggerUtil.h +++ b/cpp/include/Ice/LoggerUtil.h @@ -1,103 +1,103 @@ -// **********************************************************************
-//
-// Copyright (c) 2001
-// MutableRealms, Inc.
-// Huntsville, AL, USA
-//
-// All Rights Reserved
-//
-// **********************************************************************
-
-#ifndef ICE_LOGGER_UTIL_H
-#define ICE_LOGGER_UTIL_H
-
-#include <Ice/LoggerF.h>
-
-namespace Ice
-{
-
-class ICE_API Warning : public IceUtil::noncopyable
-{
-public:
-
- Warning(const LoggerPtr&);
- ~Warning();
-
- void flush();
-
- std::ostringstream& __str(); // For internal use only. Don't use in your code.
-
-private:
-
- LoggerPtr _logger;
- std::ostringstream _str;
-};
-
-template<typename T>
-Warning&
-operator<<(Warning& out, const T& val)
-{
- out.__str() << val;
- return out;
-}
-
-ICE_API Warning& operator<<(Warning&, std::ios_base& (*)(std::ios_base&));
-
-class ICE_API Error : public IceUtil::noncopyable
-{
-public:
-
- Error(const LoggerPtr&);
- ~Error();
-
- void flush();
-
- std::ostringstream& __str(); // For internal use only. Don't use in your code.
-
-private:
-
- LoggerPtr _logger;
- std::ostringstream _str;
-};
-
-template<typename T>
-Error&
-operator<<(Error& out, const T& val)
-{
- out.__str() << val;
- return out;
-}
-
-ICE_API Error& operator<<(Error&, std::ios_base& (*)(std::ios_base&));
-
-class ICE_API Trace : public IceUtil::noncopyable
-{
-public:
-
- Trace(const LoggerPtr&, const std::string&);
- ~Trace();
-
- void flush();
-
- std::ostringstream& __str(); // For internal use only. Don't use in your code.
-
-private:
-
- LoggerPtr _logger;
- std::string _category;
- std::ostringstream _str;
-};
-
-template<typename T>
-Trace&
-operator<<(Trace& out, const T& val)
-{
- out.__str() << val;
- return out;
-}
-
-ICE_API Trace& operator<<(Trace&, std::ios_base& (*)(std::ios_base&));
-
-}
-
-#endif
+// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#ifndef ICE_LOGGER_UTIL_H +#define ICE_LOGGER_UTIL_H + +#include <Ice/LoggerF.h> + +namespace Ice +{ + +class ICE_API Warning : public IceUtil::noncopyable +{ +public: + + Warning(const LoggerPtr&); + ~Warning(); + + void flush(); + + std::ostringstream& __str(); // For internal use only. Don't use in your code. + +private: + + LoggerPtr _logger; + std::ostringstream _str; +}; + +template<typename T> +Warning& +operator<<(Warning& out, const T& val) +{ + out.__str() << val; + return out; +} + +ICE_API Warning& operator<<(Warning&, std::ios_base& (*)(std::ios_base&)); + +class ICE_API Error : public IceUtil::noncopyable +{ +public: + + Error(const LoggerPtr&); + ~Error(); + + void flush(); + + std::ostringstream& __str(); // For internal use only. Don't use in your code. + +private: + + LoggerPtr _logger; + std::ostringstream _str; +}; + +template<typename T> +Error& +operator<<(Error& out, const T& val) +{ + out.__str() << val; + return out; +} + +ICE_API Error& operator<<(Error&, std::ios_base& (*)(std::ios_base&)); + +class ICE_API Trace : public IceUtil::noncopyable +{ +public: + + Trace(const LoggerPtr&, const std::string&); + ~Trace(); + + void flush(); + + std::ostringstream& __str(); // For internal use only. Don't use in your code. + +private: + + LoggerPtr _logger; + std::string _category; + std::ostringstream _str; +}; + +template<typename T> +Trace& +operator<<(Trace& out, const T& val) +{ + out.__str() << val; + return out; +} + +ICE_API Trace& operator<<(Trace&, std::ios_base& (*)(std::ios_base&)); + +} + +#endif |