1 | // |
---|---|
2 | // DummyDelegate.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 "DummyDelegate.h" |
12 | #include "Poco/Exception.h" |
13 | |
14 | DummyDelegate::DummyDelegate() {} |
15 | DummyDelegate::~DummyDelegate() {} |
16 | |
17 | void DummyDelegate::onSimple(const void* pSender, int& i) |
18 | { |
19 | if (i != 0) |
20 | { |
21 | throw Poco::InvalidArgumentException(); |
22 | } |
23 | i++; |
24 | } |
25 | void DummyDelegate::onSimple2(const void* pSender, int& i) |
26 | { |
27 | if (i != 1) |
28 | { |
29 | throw Poco::InvalidArgumentException(); |
30 | } |
31 | i++; |
32 | } |
33 | |
34 |