GCC Code Coverage Report


Directory: ./
File: src/SpyLayer.h
Date: 2024-06-11 13:26:06
Exec Total Coverage
Lines: 0 1 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*****************************************************************************
2 *
3 * Copyright (C) 2015-2016 Richard Hacker (lerichi at gmx dot net)
4 *
5 * This file is part of the PdCom library.
6 *
7 * The PdCom library is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * The PdCom library is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 * License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with the PdCom library. If not, see <http://www.gnu.org/licenses/>.
19 *
20 *****************************************************************************/
21
22 #ifndef PDCOM_SPYLAYER_H
23 #define PDCOM_SPYLAYER_H
24
25 #include "IOLayer.h"
26
27 #include <string>
28
29 namespace PdCom { namespace impl {
30 class SpyLayer : public IOLayer
31 {
32 public:
33 SpyLayer(IOLayer *parent);
34
35 private:
36 std::string outputBuffer;
37
38 // Reimplemented methods from IOLayer
39 int read(char *, int n) override;
40 void write(const char *, size_t n) override;
41 void flush() override;
42 };
43 }} // namespace PdCom::impl
44
45
46 #endif // PDCOM_SPYLAYER_H
47