ChirpSim
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
robotrepository.h
Go to the documentation of this file.
1 #ifndef ROBOTREPOSITORY_H
2 #define ROBOTREPOSITORY_H
3 
4 #include <QObject>
5 #include <QMap>
6 #include <QSharedPointer>
7 
8 class Robot;
9 
16 {
17 public:
22  static RobotRepository* instance();
23 
28  void addRobot(Robot *robot);
29 
35  Robot *getRobotFromId(unsigned id);
36 
37 protected:
38  explicit RobotRepository();
39 
40 signals:
41 
42 public slots:
43 
44 private:
46 
47  QMap<quint32, Robot*> _map;
48 };
49 
50 #endif // ROBOTREPOSITORY_H