Config.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
17 #ifndef HH_SENF_Utils_Logger_Config_
18 #define HH_SENF_Utils_Logger_Config_ 1
19 
20 // Custom includes
21 #include "Levels.hh"
22 
23 //#include "Config.mpp"
24 #include "Config.ih"
25 //-/////////////////////////////////////////////////////////////////////////////////////////////////
26 
142 namespace senf {
143 namespace log {
144 
146  //\{
147 
148 # ifdef DOXYGEN
149 
184 # define SENF_LOG_CONF
185 
186 # endif
187 
204  template <class Stream, class Area, class Level>
205  struct Enabled
206  {
207  static const bool value = (
208  (Level::value == NONE::value ? Stream::defaultLevel::value : Level::value)
209  >= detail::Config<Stream,Area>::compileLimit::value );
210  };
211 
212  //\}
213 
214 }}
215 
216 //-/////////////////////////////////////////////////////////////////////////////////////////////////
217 //#include "Config.cci"
218 //#include "Config.ct"
219 //#include "Config.cti"
220 #endif
221 
222 
223 // Local Variables:
224 // mode: c++
225 // fill-column: 100
226 // comment-column: 40
227 // c-file-style: "senf"
228 // indent-tabs-mode: nil
229 // ispell-local-dictionary: "american"
230 // compile-command: "scons -u test"
231 // End:
static unsigned const value
Definition: Levels.hh:99
static const bool value
Definition: Config.hh:207
Levels public header.
Check, if logging is enabled for stream/area/level tuple.
Definition: Config.hh:205