StatisticsTargets.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_StatisticsTargets_
18 #define HH_SENF_Utils_StatisticsTargets_ 1
19 
20 // Custom includes
21 #include <string>
22 #include <senf/Utils/Logger/Log.hh>
23 
24 //#include "StatisticsTargets.mpp"
25 #include "StatisticsTargets.ih"
26 //-/////////////////////////////////////////////////////////////////////////////////////////////////
27 
28 namespace senf {
29 
30 #ifdef DOXYGEN
31 
34  typedef unspecified StatisticsStream;
35 #else
36  SENF_LOG_DEFINE_STREAM(StatisticsStream,
38 #endif
39 
40 #ifdef DOXYGEN
41 
63  template <class A1=void, class A2=void, class A3=void>
64  std::unique_ptr< unspecified > StatisticsLogger(std::string const & label="")
65 
66 #else
67 
68  std::unique_ptr< detail::StatisticsLogger<void,void,void> > StatisticsLogger(
69  std::string const & label="");
70 
71  template <class Stream>
72  std::unique_ptr< detail::StatisticsLogger<Stream,void,void> > StatisticsLogger(
73  std::string const & label="");
74 
75  template <class Stream, class Area>
76  std::unique_ptr< detail::StatisticsLogger<Stream,Area,void> > StatisticsLogger(
77  std::string const & label="");
78 
79  template <class Stream, class Area, class Level>
80  std::unique_ptr< detail::StatisticsLogger<Stream,Area,Level> > StatisticsLogger(
81  std::string const & label="");
82 
83 #endif
84 
85 }
86 
87 //-/////////////////////////////////////////////////////////////////////////////////////////////////
88 #include "StatisticsTargets.cci"
89 #include "StatisticsTargets.ct"
90 #include "StatisticsTargets.cti"
91 #endif
92 
93 
94 // Local Variables:
95 // mode: c++
96 // fill-column: 100
97 // comment-column: 40
98 // c-file-style: "senf"
99 // indent-tabs-mode: nil
100 // ispell-local-dictionary: "american"
101 // compile-command: "scons -u test"
102 // End:
unspecified StatisticsStream
Logging stream for statistics messages.
SENF_LOG_DEFINE_STREAM(Debug, MESSAGE, MESSAGE, NOTICE)