CFLinker.h 565 Bytes
Newer Older
1
2
3
4
5
6
7
#ifndef CFLINKER_H
#define CFLINKER_H

#include "globalDefinitions.h"
#include "crazyFly.h"
#include "crazyFlyZone.h"

8
9
#include <QTableWidget>

10
11
12
class CFLinker
{
public:
13
    explicit CFLinker(QTableWidget* p_table);
14
15
    ~CFLinker();

16
    void link(int student_id, crazyFly* crazyfly, crazyFlyZone* crazyfly_zone);
17
18
19
20
21
22
23
24
25
26
27

    void unlink(crazyFly* crazyfly,  crazyFlyZone* crazyfly_zone);

private:

    struct link {
        int cf_zone_index;
        std::string cf_name;
    };

    std::vector<struct link> links;
28
29
30

    // table
    QTableWidget* m_p_table;
31
32
33
34
};


#endif