XORDE  v1.0
eXtensible Operational Robotic Development Environment
IOBaseClass.h
1 #ifndef TRONOSTOOLS_H
2 #define TRONOSTOOLS_H
3 
4 #include <QHash>
5 #include <QSharedPointer>
6 
7 #include "Protocol/ONBPacket.h"
8 
9 #include "tronostools_global.h"
10 
11 class TRONOSTOOLSSHARED_EXPORT IOBaseClass
12 {
13 public:
14  typedef QList<QSharedPointer<ONBPacket>> list_data;
15  typedef QHash<QString, list_data> io_list;
16  IOBaseClass();
17  virtual ~IOBaseClass();
18 
19  virtual void popPacketFromInput(QString in_input_name) = 0;
20  virtual ONBPacket* getDataPointer(QString in_input_name) = 0;
21  virtual bool getData(QList<QSharedPointer<ONBPacket>>& out_list) = 0;
22 
23  virtual bool isEmptyInputs() = 0;
24  virtual void setInputName(QString in_names) = 0;
25  virtual void setData(QString in_input, QSharedPointer<ONBPacket> in_data) = 0;
26 };
27 
28 #endif // TRONOSTOOLS_H