source: pacpusframework/branches/2.0-beta1/src/TestComponents/test/testComponent2.h@ 89

Last change on this file since 89 was 89, checked in by morasjul, 11 years ago

PACPUS 2.0 Beta deployed in new branch

Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support

  • Property svn:executable set to *
File size: 999 bytes
Line 
1/**
2@file
3Purpose: Lidar Detection
4
5@date created 2010-06-03 16:13
6@author Julien Moras
7@author Sergio Rodriguez
8@version $Id: $
9*/
10
11#ifndef TestComponent2_H
12#define TestComponent2_H
13
14#include <Pacpus/kernel/ComponentBase.h>
15#include <Pacpus/kernel/inputOutputInterface.h>
16
17#include <Pacpus/kernel/road_time.h>
18#include <Pacpus/PacpusTools/pacpusStruct.h>
19
20#include <QThread>
21#include <QImage>
22
23namespace pacpus {
24
25class TestComponent2
26 : public QObject
27 , public ComponentBase
28{
29 Q_OBJECT
30
31public:
32 static const char * COMPONENT_TYPE;
33
34 TestComponent2(QString name);
35 ~TestComponent2();
36
37 virtual void stopActivity();
38 virtual void startActivity();
39 virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
40 void process2(const QImage& matrix);
41
42public slots:
43 void addInputOutput();
44private:
45 QMutex mutex;
46
47 QImage matrix;
48 QThread thread;
49
50 int i;
51
52 FILE *fp;
53
54};
55
56} // namespace pacpus
57
58#endif // TestComponent2_H
Note: See TracBrowser for help on using the repository browser.