OFFIS DCMTK  Version 3.6.0
windebap.h
Go to the documentation of this file.
1 // Module: Log4CPLUS
2 // File: win32debugappender.h
3 // Created: 12/2003
4 // Author: Eduardo Francos, Odalio SARL
5 //
6 //
7 // Copyright 2003-2009 Odalio SARL
8 //
9 // Licensed under the Apache License, Version 2.0 (the "License");
10 // you may not use this file except in compliance with the License.
11 // You may obtain a copy of the License at
12 //
13 // http://www.apache.org/licenses/LICENSE-2.0
14 //
15 // Unless required by applicable law or agreed to in writing, software
16 // distributed under the License is distributed on an "AS IS" BASIS,
17 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 // See the License for the specific language governing permissions and
19 // limitations under the License.
20 
23 #ifndef _LOG4CPLUS_WIN32DEBUG_APPENDER_HEADER_
24 #define _LOG4CPLUS_WIN32DEBUG_APPENDER_HEADER_
25 
26 #include "dcmtk/oflog/config.h"
27 #if defined(_WIN32)
28 
29 #include "dcmtk/oflog/appender.h"
31 
32 
33 namespace log4cplus {
34 
38  class LOG4CPLUS_EXPORT Win32DebugAppender
39  : public Appender
40  {
41  public:
42  // Ctors
43  Win32DebugAppender();
44  Win32DebugAppender(const log4cplus::helpers::Properties& properties, tstring& error);
45 
46  // Dtor
47  virtual ~Win32DebugAppender();
48 
49  // Methods
50  virtual void close();
51 
52  protected:
53  virtual void append(const log4cplus::spi::InternalLoggingEvent& event);
54 
55  private:
56  // Disallow copying of instances of this class
57  Win32DebugAppender(const Win32DebugAppender&);
58  Win32DebugAppender& operator=(const Win32DebugAppender&);
59  };
60 
61 } // end namespace log4cplus
62 
63 #endif // _WIN32
64 #endif // _LOG4CPLUS_WIN32DEBUG_APPENDER_HEADER_
65 


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2