Jpp
software
JLogger
JLogger.hh
Go to the documentation of this file.
1
#ifndef __JLOGGER__
2
#define __JLOGGER__
3
4
#include <string>
5
#include <
JLang/JMutex.hh
>
6
7
/**
8
* \author mdejong
9
*/
10
11
namespace
JLOGGER
{}
12
namespace
JPP
{
using namespace
JLOGGER
; }
13
14
/**
15
* Message logging.
16
*/
17
namespace
JLOGGER
{
18
19
/**
20
* Interface for logging messages.
21
*/
22
class
JLogger
{
23
public
:
24
/**
25
* Virtual destructor.
26
*/
27
virtual
~JLogger
()
28
{}
29
30
/**
31
* Report message
32
*
33
* \param tag tag
34
* \param message message
35
*/
36
virtual
void
typeout
(
const
std::string& tag,
37
const
std::string& message) = 0;
38
39
/**
40
* Provides internal lock object.
41
*
42
* \return reference to the internal mutex object.
43
*/
44
JSYNCHRONIZATION::JMutex
&
mutex
()
45
{
46
return
m_mutex
;
47
}
48
49
private
:
50
51
JSYNCHRONIZATION::JMutex
m_mutex
;
52
};
53
}
54
55
#endif
JLOGGER::JLogger
Interface for logging messages.
Definition:
JLogger.hh:22
JLOGGER::JLogger::m_mutex
JSYNCHRONIZATION::JMutex m_mutex
Definition:
JLogger.hh:51
JLOGGER
Message logging.
Definition:
JControlHostLogger.hh:14
JMutex.hh
JLOGGER::JLogger::typeout
virtual void typeout(const std::string &tag, const std::string &message)=0
Report message.
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JSYNCHRONIZATION::JMutex
Mutex.
Definition:
JMutex.hh:92
JLOGGER::JLogger::mutex
JSYNCHRONIZATION::JMutex & mutex()
Provides internal lock object.
Definition:
JLogger.hh:44
JLOGGER::JLogger::~JLogger
virtual ~JLogger()
Virtual destructor.
Definition:
JLogger.hh:27
Generated by
1.8.16