mirror of
https://github.com/JvanKatwijk/dab-cmdline
synced 2025-10-05 23:52:50 +02:00
37 lines
584 B
C++
37 lines
584 B
C++
|
|
#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 &);
|
|
};
|
|
|
|
|