12#include "../ThreadBased.hpp"
16class Generator :
public ThreadBased
21 Generator(
Id id, std::string
name);
27 void exec(std::stop_token stopToken)
override;
30 double _frequency = 1.;
#define DFX_NODE(typeName)
Convenience macro to declare the node type string and metadata/schema hooks.
Definition Node.hpp:501
uint32_t Id
Node identifier type (unique and stable within a graph instance).
Definition Node.hpp:113
nlohmann::json const & config() const noexcept
Get the node configuration.
Definition Node.hpp:138
std::string const & name() const noexcept
Get the node name.
Definition Node.hpp:134
void initializeImpl(nlohmann::json config) override
Called by initialize; derived nodes must parse config here.
Definition MimeTypeRouter.hpp:18