-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathSignalMath.h
48 lines (38 loc) · 1.26 KB
/
SignalMath.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Copyright (C) 2018 Istituto Italiano di Tecnologia (IIT)
* All rights reserved.
*
* This software may be modified and distributed under the terms of the
* GNU Lesser General Public License v2.1 or any later version.
*/
#ifndef EXAMPLE_SIGNALMATH_H
#define EXAMPLE_SIGNALMATH_H
#include <BlockFactory/Core/Block.h>
#include <BlockFactory/Core/BlockInformation.h>
#include <memory>
#include <string>
namespace example {
class SignalMath;
} // namespace example
class example::SignalMath : public blockfactory::core::Block
{
private:
enum class Operation
{
ADDITION,
SUBTRACTION,
MULTIPLICATION,
};
Operation m_operation;
public:
static const std::string ClassName;
SignalMath() = default;
~SignalMath() override = default;
unsigned numberOfParameters() override;
bool parseParameters(blockfactory::core::BlockInformation* blockInfo) override;
bool configureSizeAndPorts(blockfactory::core::BlockInformation* blockInfo) override;
bool initialize(blockfactory::core::BlockInformation* blockInfo) override;
bool output(const blockfactory::core::BlockInformation* blockInfo) override;
bool terminate(const blockfactory::core::BlockInformation* blockInfo) override;
};
#endif // EXAMPLE_SIGNALMATH_H