diff options
author | Marc Laukien <marc@zeroc.com> | 2002-06-24 18:49:27 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-06-24 18:49:27 +0000 |
commit | 1cb9977463f5a832b3f6daea8a2322d38dbba423 (patch) | |
tree | d1ae4045c5fa9a7124201510df3ad5b7211788cb /cpp/include/Ice/LoggerUtil.h | |
parent | Added checks to disallow definition of a name in a derived class/interface (diff) | |
download | ice-1cb9977463f5a832b3f6daea8a2322d38dbba423.tar.bz2 ice-1cb9977463f5a832b3f6daea8a2322d38dbba423.tar.xz ice-1cb9977463f5a832b3f6daea8a2322d38dbba423.zip |
unix format
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 |