Fix documentation build under maverick (doxygen 1.7.1)
[senf.git] / senf / Utils / Logger / main.test.hh
1 // $Id$
2 //
3 // Copyright (C) 2007
4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
6 //     Stefan Bund <g0dil@berlios.de>
7 //
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 // GNU General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22
23 /** \file
24     \brief main.test public header */
25
26 #ifndef HH_SENF_Utils_Logger_main_test_
27 #define HH_SENF_Utils_Logger_main_test_ 1
28
29 // Custom includes
30
31 #ifdef SENF_LOG_CONF
32 #undef SENF_LOG_CONF
33 #endif
34
35 #define SENF_LOG_CONF (( (senf)(log)(Debug), (_), NOTICE )) \
36                       (( (senf)(log)(test)(myStream), (GlobalTestArea), IMPORTANT )) \
37                       (( (senf)(log)(test)(myStream), (senf)(log)(test)(Foo), VERBOSE ))
38
39 #include "Logger.hh"
40
41 //#include "main.test.mpp"
42 //-/////////////////////////////////////////////////////////////////////////////////////////////////
43
44 SENF_LOG_DEFINE_AREA(GlobalTestArea);
45
46 namespace senf {
47 namespace log {
48 namespace test {
49
50     struct Foo
51     {
52         SENF_LOG_CLASS_AREA();
53
54         static void log() {
55             SENF_LOG(("Foo::log"));
56         }
57     };
58
59     SENF_LOG_DEFINE_ALIAS( LogCritical, (senf::log::Debug) (senf::log::CRITICAL) );
60     SENF_LOG_DEFINE_STREAM( myStream, senf::log::MESSAGE, senf::log::MESSAGE, senf::log::MESSAGE );
61     SENF_LOG_DEFINE_AREA( myArea );
62
63 }}}
64
65 //-/////////////////////////////////////////////////////////////////////////////////////////////////
66 //#include "main.test.cci"
67 //#include "main.test.ct"
68 //#include "main.test.cti"
69 #endif
70
71 \f
72 // Local Variables:
73 // mode: c++
74 // fill-column: 100
75 // comment-column: 40
76 // c-file-style: "senf"
77 // indent-tabs-mode: nil
78 // ispell-local-dictionary: "american"
79 // compile-command: "scons -u test"
80 // End: