1
0
mirror of https://github.com/JvanKatwijk/dab-cmdline synced 2025-10-05 23:52:50 +02:00
Files
SDR-DAB_dab-cmdline/example-2/tii-handling/tii-handler.h

37 lines
584 B
C
Raw Normal View History

2025-06-22 19:12:39 +02:00
#pragma once
#include <stdio.h>
#include <stdint.h>
#include <vector>
#include <thread>
#include <atomic>
#include "dab-constants.h"
#include "tiiQueue.h"
#include "cacheElement.h"
#include "tii-reader.h"
class tiiHandler {
public:
tiiHandler ();
~tiiHandler ();
void add (tiiData theData);
private:
tiiReader theReader;
std::vector<cacheElement> the_dataBase;
tiiQueue theBuffer;
std::vector<tiiData> tiiTable;
bool has_dataBase;
bool known (tiiData &);
void run ();
std::thread threadHandle;
std::atomic<bool> running;
cacheElement * lookup (tiiData &);
};