Jpp
software
JLogger
JControlHostLogger.hh
Go to the documentation of this file.
1
#ifndef __JLOGGER__JCONTROLHOSTLOGGER__
2
#define __JLOGGER__JCONTROLHOSTLOGGER__
3
4
#include <string>
5
6
#include "
JNet/JControlHost.hh
"
7
#include "
JLogger.hh
"
8
9
10
/**
11
* \author mdejong
12
*/
13
14
namespace
JLOGGER
{}
15
namespace
JPP
{
using namespace
JLOGGER
; }
16
17
namespace
JLOGGER
{
18
19
using
JNET::JControlHost
;
20
21
22
/**
23
* Message logging based on ControlHost.
24
* This class implements the JLogger interface.
25
*/
26
class
JControlHostLogger
:
27
public
JLogger
,
28
protected
JControlHost
29
{
30
public
:
31
/**
32
* Constructor.
33
*
34
* \param host_name host name
35
*/
36
JControlHostLogger
(std::string
const
& host_name) :
37
JControlHost
(host_name)
38
{}
39
40
41
/**
42
* Report message
43
*
44
* \param tag tag
45
* \param message message
46
*/
47
virtual
void
typeout
(
const
std::string& tag,
48
const
std::string& message)
49
{
50
this->
PutFullString
(tag, message);
51
}
52
};
53
}
54
55
#endif
JLOGGER::JLogger
Interface for logging messages.
Definition:
JLogger.hh:22
JNET::JControlHost::PutFullString
int PutFullString(const JTag &tag, const std::string &buffer)
Send string.
Definition:
JControlHost.hh:472
JLOGGER
Message logging.
Definition:
JControlHostLogger.hh:14
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JLogger.hh
JNET::JControlHost
ControlHost class.
Definition:
JControlHost.hh:247
JLOGGER::JControlHostLogger::typeout
virtual void typeout(const std::string &tag, const std::string &message)
Report message.
Definition:
JControlHostLogger.hh:47
JLOGGER::JControlHostLogger
Message logging based on ControlHost.
Definition:
JControlHostLogger.hh:26
JLOGGER::JControlHostLogger::JControlHostLogger
JControlHostLogger(std::string const &host_name)
Constructor.
Definition:
JControlHostLogger.hh:36
JControlHost.hh
Generated by
1.8.16