You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
420 B
30 lines
420 B
7 years ago
|
/*
|
||
|
* data_receiver.h
|
||
|
*
|
||
|
* Created on: Aug 22, 2017
|
||
|
* Author: Elmar
|
||
|
*/
|
||
|
|
||
|
#ifndef APP_DATA_RECEIVER_H_
|
||
|
#define APP_DATA_RECEIVER_H_
|
||
|
|
||
|
#include "data_sink.h"
|
||
|
|
||
|
namespace rijnfel {
|
||
|
|
||
|
class cDataReceiver {
|
||
|
public:
|
||
|
cDataReceiver(cDataSink * i_sink) {
|
||
|
m_sink = i_sink;
|
||
|
}
|
||
|
void Receive(void * i_data) {
|
||
|
m_sink->ReceiveCallback(i_data, this);
|
||
|
}
|
||
|
private:
|
||
|
cDataSink * m_sink;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif /* APP_DATA_RECEIVER_H_ */
|