git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@880 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-05-28 13:21:43 +00:00
parent 4d1ff8d1ae
commit b6d1b1f45b
10 changed files with 255 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
#ifndef __RADIO_PROCESSOR_HPP_
#define __RADIO_PROCESSOR_HPP_
#include <forward_list>
#include <Block.hpp>
#pragma once
class Processor
{
public:
Processor();
~Processor();
void blockAdd(Block &block)
{
m_blockList.push_front(&block);
}
void blockRem(Block &block)
{
m_blockList.remove(&block);
}
void run()
{
for (auto block : m_blockList)
{
block->process();
}
}
private:
std::forward_list<Block*>m_blockList;
};
#endif