Directory: | ./ |
---|---|
File: | pdcom5/src/msrproto/Parameter.h |
Date: | 2024-11-17 04:08:36 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 6 | 6 | 100.0% |
Branches: | 1 | 2 | 50.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 MSR_PARAMETER_H | ||
23 | #define MSR_PARAMETER_H | ||
24 | |||
25 | #include "Variable.h" | ||
26 | |||
27 | #include <unordered_set> | ||
28 | |||
29 | namespace PdCom { namespace impl { namespace MsrProto { | ||
30 | class ProtocolHandler; | ||
31 | struct Request; | ||
32 | |||
33 | 174 | class Parameter : public Variable | |
34 | { | ||
35 | public: | ||
36 | 174 | Parameter( | |
37 | SizeInfo size_info, | ||
38 | const TypeInfo *type_info, | ||
39 | std::weak_ptr<impl::Process> process, | ||
40 | unsigned int index, | ||
41 | unsigned int flags, | ||
42 | const char *alias, | ||
43 | 174 | bool isDir) : | |
44 | Variable( | ||
45 | 174 | std::move(size_info), | |
46 | type_info, | ||
47 | process, | ||
48 | index, | ||
49 | 0, | ||
50 | true, | ||
51 | 0.0, | ||
52 | alias, | ||
53 | isDir, | ||
54 | true), | ||
55 |
1/2✓ Branch 7 taken 174 times.
✗ Branch 8 not taken.
|
348 | flags(flags) |
56 | 174 | {} | |
57 | |||
58 | const unsigned int flags; | ||
59 | |||
60 | |||
61 | // Reimplemented from PdCom::impl::Variable | ||
62 | PdCom::Variable::SetValueFuture | ||
63 | setValue(const void *, TypeInfo::DataType t, size_t idx, size_t n) | ||
64 | const override; | ||
65 | }; | ||
66 | |||
67 | }}} // namespace PdCom::impl::MsrProto | ||
68 | |||
69 | #endif // MSR_PARAMETER_H | ||
70 |