Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
log4cpp
StringQueueAppender.hh
Go to the documentation of this file.
1
/*
2
* StringQueueAppender.hh
3
*
4
* Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5
* Copyright 2000, Bastiaan Bakker. All rights reserved.
6
*
7
* See the COPYING file for the terms of usage and distribution.
8
*/
9
10
#ifndef _LOG4CPP_STRINGQUEUEAPPENDER_HH
11
#define _LOG4CPP_STRINGQUEUEAPPENDER_HH
12
13
#include <
log4cpp/Portability.hh
>
14
#include <string>
15
#include <queue>
16
#include <
log4cpp/LayoutAppender.hh
>
17
18
namespace
log4cpp
{
19
26
class
LOG4CPP_EXPORT
StringQueueAppender
:
public
LayoutAppender
{
27
public
:
28
29
StringQueueAppender
(
const
std::string& name);
30
virtual
~
StringQueueAppender
();
31
32
virtual
bool
reopen();
33
virtual
void
close();
34
40
virtual
size_t
queueSize()
const
;
41
46
virtual
std::queue<std::string>& getQueue();
47
52
virtual
const
std::queue<std::string>& getQueue()
const
;
53
58
virtual
std::string popMessage();
59
60
protected
:
61
66
virtual
void
_append(
const
LoggingEvent
& event);
67
68
std::queue<std::string>
_queue
;
69
};
70
}
71
72
#endif // _LOG4CPP_STRINGQUEUEAPPENDER_HH
Portability.hh
log4cpp::StringQueueAppender
Definition:
StringQueueAppender.hh:26
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:26
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::LoggingEvent
Definition:
LoggingEvent.hh:32
log4cpp::StringQueueAppender::_queue
std::queue< std::string > _queue
Definition:
StringQueueAppender.hh:68
log4cpp::LayoutAppender
Definition:
LayoutAppender.hh:24
LayoutAppender.hh
log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:14:17