NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
face-log.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_FACE_FACE_LOG_HPP
27
#define NFD_DAEMON_FACE_FACE_LOG_HPP
28
29
#include "
core/logger.hpp
"
30
31
namespace
nfd
{
32
namespace
face
{
33
42
template
<
typename
T>
43
class
FaceLogHelper
44
{
45
public
:
46
explicit
47
FaceLogHelper
(
const
T& obj1)
48
:
obj
(obj1)
49
{
50
}
51
52
public
:
53
const
T&
obj
;
54
};
55
65
#define NFD_LOG_FACE(level, msg) NFD_LOG_##level( \
66
::nfd::face::FaceLogHelper< \
67
typename std::remove_cv< \
68
typename std::remove_reference<decltype(*this)>::type \
69
>::type \
70
>(*this) \
71
<< msg)
72
74
#define NFD_LOG_FACE_TRACE(msg) NFD_LOG_FACE(TRACE, msg)
75
77
#define NFD_LOG_FACE_DEBUG(msg) NFD_LOG_FACE(DEBUG, msg)
78
80
#define NFD_LOG_FACE_INFO(msg) NFD_LOG_FACE(INFO, msg)
81
83
#define NFD_LOG_FACE_WARN(msg) NFD_LOG_FACE(WARN, msg)
84
86
#define NFD_LOG_FACE_ERROR(msg) NFD_LOG_FACE(ERROR, msg)
87
90
}
// namespace face
91
}
// namespace nfd
92
93
#endif // NFD_DAEMON_FACE_FACE_LOG_HPP
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::face::FaceLogHelper::FaceLogHelper
FaceLogHelper(const T &obj1)
Definition:
face-log.hpp:47
face
nfd::face::FaceLogHelper::obj
const T & obj
Definition:
face-log.hpp:53
nfd::face::FaceLogHelper
for internal use by FaceLogging macros
Definition:
face-log.hpp:43
logger.hpp
ndnSIM
NFD
daemon
face
face-log.hpp
Generated on Wed Jan 11 2017 18:17:15 for ndnSIM by
1.8.13