Changeset 291 in pacpusframework for trunk/examples/ProducerConsumerExample/ProducerExample.h
- Timestamp:
- 03/27/14 12:53:43 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/ProducerConsumerExample/ProducerExample.h
r176 r291 16 16 #include <Pacpus/kernel/road_time.h> 17 17 //#include <Pacpus/structure/genericStructures.h> 18 #include <QThread> 18 19 #include <boost/asio.hpp> 20 #include <boost/date_time/posix_time/posix_time_types.hpp> 21 #include <fstream> 19 22 #include <QImage> 20 23 21 namespace pacpus { 24 namespace pacpus 25 { 22 26 23 27 class PRODUCERCONSUMEREXAMPLE_API ProducerExample 24 : public QThread25 28 : public QObject 29 , public ComponentBase 26 30 { 27 31 Q_OBJECT … … 41 45 virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config); 42 46 43 protected: 44 void run(); 45 46 public Q_SLOTS: 47 private: 48 void produce(int& counter); 47 49 48 50 private: 49 51 std::string mOutputFileName; 50 //QThread thread; 52 53 std::fstream mFile; 54 OutputInterface<QImage, ProducerExample>* mImageOutput; 55 56 boost::asio::io_service mIo; 57 boost::posix_time::time_duration mInterval; 58 boost::asio::deadline_timer mTimer; 51 59 }; 52 60
Note:
See TracChangeset
for help on using the changeset viewer.