SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
node_int.h
1#pragma once
2
3#include "dsp/block.h"
4#include "dsp/device/options_displayer_warper.h"
5#include "nlohmann/json.hpp"
6
7namespace satdump
8{
9 namespace ndsp
10 {
11 // TODOREWORK proper sub-namespace?
12 class Flowgraph;
13
14 class NodeInternal
15 {
16 protected:
17 Flowgraph *f;
18
19 std::shared_ptr<ndsp::OptDisplayerWarper> optdisp;
20
21 public:
22 std::shared_ptr<ndsp::Block> blk;
23
24 public:
25 NodeInternal(const Flowgraph *f, std::shared_ptr<ndsp::Block> b);
26
27 virtual bool render();
28
29 virtual void up_state() { optdisp->update(); }
30
31 virtual nlohmann::json getP();
32 virtual void setP(nlohmann::json p);
33 };
34 } // namespace ndsp
35} // namespace satdump
Definition flowgraph.h:26