source: ntrip/trunk/GnssCenter/thrift/rtnet_sdo_example/ConnectionRequiredRunnable.h@ 7134

Last change on this file since 7134 was 4941, checked in by mervart, 12 years ago
File size: 960 bytes
Line 
1#ifndef RTNET_SDO_EXAMPLE_CONNECTIONREQUIREDRUNNABLE_H
2#define RTNET_SDO_EXAMPLE_CONNECTIONREQUIREDRUNNABLE_H
3
4#include <concurrency/Thread.h>
5#include <concurrency/Monitor.h>
6#include <string>
7
8#include "ConnectionStatusMonitor.h"
9
10class ConnectionRequiredRunnable : public apache::thrift::concurrency::Runnable
11{
12public:
13 ConnectionRequiredRunnable(boost::shared_ptr<ConnectionStatusMonitor>& connectionMonitor, const std::string& name);
14 virtual ~ConnectionRequiredRunnable() {}
15 virtual void connectionLost();
16 virtual void connectionEstablished();
17 virtual void stop();
18protected:
19 virtual void disconnected();
20 virtual void connectWait();
21 virtual void disconnectWait();
22 boost::shared_ptr<ConnectionStatusMonitor> connectionMonitor_;
23 std::string threadName_;
24 apache::thrift::concurrency::Monitor connectMonitor_;
25 apache::thrift::concurrency::Monitor disconnectMonitor_;
26 bool stop_;
27};
28
29#endif // RTNET_PLOT_CONNECTIONREQUIREDRUNNABLE_H
Note: See TracBrowser for help on using the repository browser.