1 // Module:  Log4CPLUS
 2 // File:    logloguser.h
 3 // Created: 6/2003
 4 // Author:  Tad E. Smith
 5 //
 6 //
 7 // Copyright (C) Tad E. Smith  All rights reserved.
 8 //
 9 // This software is published under the terms of the Apache Software
10 // License version 1.1, a copy of which has been included with this
11 // distribution in the LICENSE.APL file.
12 //
13 
14 /** @file */
15 
16 #ifndef _LOG4CPLUS_HELPERS_LOGLOG_USER
17 #define _LOG4CPLUS_HELPERS_LOGLOG_USER
18 
19 #include <log4cplus/config.h>
20 
21 
22 namespace log4cplus {
23     namespace helpers {
24         // forward declarations
25         class LogLog;
26 
27         /**
28          * This class used to simplify the use of the LogLog class.  Any class
29          * that uses the LogLog class should extend this class and retrieve
30          * their reference to LogLog using the method provided.
31          */
32         class LOG4CPLUS_EXPORT LogLogUser {
33         public:
34           // ctor and dtor
35             LogLogUser();
36             LogLogUser(const LogLogUser&);
37             virtual ~LogLogUser();
38 
39           // public methods
40             LogLog& getLogLog() const;
41             
42           // operators
43             LogLogUser& operator=(const LogLogUser& rhs);
44 
45         private:
46           // Data
47             void* loglogRef;
48         };
49 
50     } // end namespace helpers
51 } // end namespace log4cplus
52 
53 
54 #endif // _LOG4CPLUS_HELPERS_LOGLOG_USER


syntax highlighted by Code2HTML, v. 0.9.1