Falcon
Loading...
Searching...
No Matches
template_processor.hpp
1// ---------------------------------------------------------------------
2// This file is part of falcon-core.
3//
4// Copyright (C) 2015, 2016, 2017 Neuro-Electronics Research Flanders
5//
6// Falcon-server is free software: you can redistribute it and/or modify
7// it under the terms of the GNU General Public License as published by
8// the Free Software Foundation, either version 3 of the License, or
9// (at your option) any later version.
10//
11// Falcon-server is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with falcon-core. If not, see <http://www.gnu.org/licenses/>.
18// ---------------------------------------------------------------------
19#pragma once
20
21#include "datatype1/datatype1.hpp"
22#include "datatype1/datatype2.hpp"
23#include "iprocessor.hpp"
24
25class FalconProcessor : public IProcessor {
26 public:
27 void Configure(const GlobalContext& context) override;
28 void CreatePorts() override;
29 void CompleteStreamInfo() override;
30 void Prepare(GlobalContext& context) override;
31 void Preprocess(ProcessingContext& context) override;
32 void Process(ProcessingContext& context) override;
33 void Postprocess(ProcessingContext& context) override;
34 void Unprepare(GlobalContext& context) override;
35
36 protected:
37 void method1();
38
39 protected:
40 PortIn<AnyDataType>* data_in_port_;
41 PortIn<AnyDataType>* other_data_in_port_;
42 PortOut<AnyDataType>* data_out_port_;
43 PortOut<AnyDataType>* other_data_out_port_;
44
45 WritableState<T1>* state_variable1_;
46 ReadableState<T2>* state_variable2_;
47
48 T1 default_state_variable1_;
49 T2 default_state_variable2_;
50
51 datatype1 option1_;
52 datatype2 option2_;
53
54 public:
55 const datatype1 DEFAULT_OPTION1 = 6;
56 static constexpr datatype DEFAULT_ARGUMENT3 = 50;
57 static constexpr datatype DEFAULT_ARGUMENT4 = DEFAULT_ARGUMENT3 * 2;
58};
Definition template_processor.hpp:25
Definition context.hpp:54
Definition streamports.hpp:256
Definition streamports.hpp:98
Definition runinfo.hpp:248
Definition sharedstate.hpp:192
Definition sharedstate.hpp:332