Utils: Moved Logger into 'Logger/' submodule
[senf.git] / Utils / Logger / Parameters.hh
1 // $Id$
2 //
3 // Copyright (C) 2007 
4 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
5 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
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 Parameters public header */
25
26 #ifndef HH_Parameters_
27 #define HH_Parameters_ 1
28
29 // Custom includes
30
31 //#include "Parameters.mpp"
32 #include "Parameters.ih"
33 ///////////////////////////////hh.p////////////////////////////////////////
34
35 /** \brief Set scope default log stream
36     \hideinitializer
37  */
38 #define SENF_LOG_DEFAULT_STREAM(stream) typedef stream SENFLogDefaultStream
39
40 /** \brief Set scope default log area
41     \hideinitializer
42  */
43 #define SENF_LOG_DEFAULT_AREA(area) typedef area SENFLogDefaultArea
44
45 /** \brief Set scope default log level
46     \hideinitializer
47  */
48 #define SENF_LOG_DEFAULT_LEVEL(level) typedef level SENFLogDefaultLevel
49
50 /** \brief Define log parameter alias
51
52     Defines a new parameter alias named \a alias as an alias for the parameters in \a args. The
53     alias is defined as a symbol in the current scope.
54
55     \hideinitializer
56  */
57 #define SENF_LOG_DEF_ALIAS(alias,args)                                                            \
58     struct alias : public senf::log::detail::AliasBase                                            \
59     {                                                                                             \
60         template <class Base>                                                                     \
61         struct apply                                                                              \
62         {                                                                                         \
63             typedef typename SENF_LOG_MERGE_PARAMETERS_I(Base,args) type;                         \
64         };                                                                                        \
65     }
66
67 ///////////////////////////////hh.e////////////////////////////////////////
68 //#include "Parameters.cci"
69 //#include "Parameters.ct"
70 //#include "Parameters.cti"
71 #endif
72
73 \f
74 // Local Variables:
75 // mode: c++
76 // fill-column: 100
77 // comment-column: 40
78 // c-file-style: "senf"
79 // indent-tabs-mode: nil
80 // ispell-local-dictionary: "american"
81 // compile-command: "scons -u test"
82 // End: