WimaVehicle.h 968 Bytes
Newer Older
1
#pragma once
2

3 4
#include <QObject>
#include "Vehicle.h"
5

6 7 8 9 10
class WimaServiceArea;
class WimaVCorridor;
class WimaGOperationArea;

class WimaVehicle : public QObject
11
{
12
    Q_OBJECT
13
public:
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
    WimaVehicle(QObject* parent = nullptr);

    WimaServiceArea*                serviceArea         (void) const { return _serviceArea;}
    WimaVCorridor*                  vehicleCorridor     (void) const { return _vehicleCorridor;}
    WimaGOperationArea*             operationArea       (void) const { return _operationArea;}

    void setVehicle                 (Vehicle* vehicle);
    void setServiceArea             (WimaServiceArea* serviceArea);
    void setVCorridor               (WimaVCorridor* vehicleCorridor);
    void setOperationArea           (WimaGOperationArea* operationArea);

private:
    Vehicle*                _vehicle;
    WimaServiceArea*        _serviceArea;
    WimaVCorridor*          _vehicleCorridor;
    WimaGOperationArea*     _operationArea;

31 32
};

33