1 | // |
---|---|
2 | // TestChannel.cpp |
3 | // |
4 | // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. |
5 | // and Contributors. |
6 | // |
7 | // SPDX-License-Identifier: BSL-1.0 |
8 | // |
9 | |
10 | |
11 | #include "TestChannel.h" |
12 | |
13 | |
14 | TestChannel::TestChannel() |
15 | { |
16 | } |
17 | |
18 | |
19 | TestChannel::~TestChannel() |
20 | { |
21 | } |
22 | |
23 | |
24 | void TestChannel::log(const Poco::Message& msg) |
25 | { |
26 | _msgList.push_back(msg); |
27 | _lastMessage = msg; |
28 | } |
29 | |
30 | |
31 | TestChannel::MsgList& TestChannel::list() |
32 | { |
33 | return _msgList; |
34 | } |
35 | |
36 | |
37 | void TestChannel::clear() |
38 | { |
39 | _msgList.clear(); |
40 | } |
41 |