diff options
author | Michi Henning <michi@zeroc.com> | 2005-01-13 07:16:45 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-01-13 07:16:45 +0000 |
commit | 26d464a9e90ec682765772250e6634be625f42d1 (patch) | |
tree | 92a2f0370e758f28db8283b1442d4e511df61462 /cpp/demo/Ice/MFC/server/LogI.h | |
parent | Fixed bug in the way the arguments were passed to a service. I'm not sure (diff) | |
download | ice-26d464a9e90ec682765772250e6634be625f42d1.tar.bz2 ice-26d464a9e90ec682765772250e6634be625f42d1.tar.xz ice-26d464a9e90ec682765772250e6634be625f42d1.zip |
Added print() operation to Ice::Logger and changed icepatch2server to use
logger instead of writing to stderr.
Diffstat (limited to 'cpp/demo/Ice/MFC/server/LogI.h')
-rw-r--r-- | cpp/demo/Ice/MFC/server/LogI.h | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/cpp/demo/Ice/MFC/server/LogI.h b/cpp/demo/Ice/MFC/server/LogI.h index f6d3aae5138..22d8b66049b 100644 --- a/cpp/demo/Ice/MFC/server/LogI.h +++ b/cpp/demo/Ice/MFC/server/LogI.h @@ -7,29 +7,30 @@ // // ********************************************************************** -
-#ifndef LOG_I_H
-#define LOG_I_H
-
-class LogI : public Ice::Logger
-{
-public:
-
- LogI();
-
- virtual void trace(const std::string&, const std::string&);
- virtual void warning(const std::string&);
- virtual void error(const std::string&);
-
- void message(const std::string&);
- void setControl(CEdit*);
-
-private:
-
- std::string _buffer;
- CEdit* _log;
-};
-
-typedef IceUtil::Handle<LogI> LogIPtr;
-
-#endif
+ +#ifndef LOG_I_H +#define LOG_I_H + +class LogI : public Ice::Logger +{ +public: + + LogI(); + + virtual void print(const std::string&); + virtual void trace(const std::string&, const std::string&); + virtual void warning(const std::string&); + virtual void error(const std::string&); + + void message(const std::string&); + void setControl(CEdit*); + +private: + + std::string _buffer; + CEdit* _log; +}; + +typedef IceUtil::Handle<LogI> LogIPtr; + +#endif |