source: ntrip/trunk/GnssCenter/thrift/rtnet_sdo_example/RtnetDataListener.h@ 5017

Last change on this file since 5017 was 4941, checked in by mervart, 11 years ago
File size: 898 bytes
Line 
1#ifndef RTNET_SDO_EXAMPLE_RTNETDATALISTENER_H
2#define RTNET_SDO_EXAMPLE_RTNETDATALISTENER_H
3
4#include "ConnectionRequiredRunnable.h"
5#include "RtnetDataHandler.h"
6#include "common/thrift/RtnetData.h"
7
8#include <protocol/TProtocol.h>
9
10class RtnetDataListener : public ConnectionRequiredRunnable
11{
12public:
13 RtnetDataListener(boost::shared_ptr<apache::thrift::protocol::TProtocol>& protocol,
14 boost::shared_ptr<ConnectionStatusMonitor>& connectionMonitor,
15 boost::shared_ptr<com::gpssolutions::rtnet::RtnetDataIf> dataHandler);
16 ~RtnetDataListener();
17
18 void run();
19 void stop();
20private:
21 boost::shared_ptr<com::gpssolutions::rtnet::RtnetDataIf> dataHandler_;
22 boost::shared_ptr<apache::thrift::protocol::TProtocol> protocol_;
23 boost::shared_ptr<com::gpssolutions::rtnet::RtnetDataProcessor> processor_;
24};
25
26#endif // RTNET_SDO_EXAMPLE_RTNETDATALISTENER_H
Note: See TracBrowser for help on using the repository browser.