oflog/include/dcmtk/oflog/nullap.h

Go to the documentation of this file.
00001 // Module:  Log4CPLUS
00002 // File:    nullappender.h
00003 // Created: 6/2003
00004 // Author:  Tad E. Smith
00005 //
00006 //
00007 // Copyright 2003-2009 Tad E. Smith
00008 //
00009 // Licensed under the Apache License, Version 2.0 (the "License");
00010 // you may not use this file except in compliance with the License.
00011 // You may obtain a copy of the License at
00012 //
00013 //     http://www.apache.org/licenses/LICENSE-2.0
00014 //
00015 // Unless required by applicable law or agreed to in writing, software
00016 // distributed under the License is distributed on an "AS IS" BASIS,
00017 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00018 // See the License for the specific language governing permissions and
00019 // limitations under the License.
00020 
00023 #ifndef _LOG4CPLUS_NULL_APPENDER_HEADER_
00024 #define _LOG4CPLUS_NULL_APPENDER_HEADER_
00025 
00026 #include "dcmtk/oflog/config.h"
00027 #include "dcmtk/oflog/appender.h"
00028 #include "dcmtk/oflog/helpers/property.h"
00029 
00030 
00031 namespace log4cplus {
00032 
00036     class LOG4CPLUS_EXPORT NullAppender : public Appender {
00037     public:
00038       // Ctors
00039         NullAppender();
00040         NullAppender(const log4cplus::helpers::Properties& properties, log4cplus::tstring& error);
00041 
00042       // Dtor
00043         virtual ~NullAppender();
00044 
00045       // Methods
00046         virtual void close();
00047 
00048     protected:
00049         virtual void append(const log4cplus::spi::InternalLoggingEvent& event);
00050 
00051     private:
00052       // Disallow copying of instances of this class
00053         NullAppender(const NullAppender&);
00054         NullAppender& operator=(const NullAppender&);
00055     };
00056 
00057 } // end namespace log4cplus
00058 
00059 #endif // _LOG4CPLUS_NULL_APPENDER_HEADER_
00060 


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1