Feck forward declaration
This commit is contained in:
parent
a22680711e
commit
9622afb211
4 changed files with 12 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include "cargoentity.h"
|
||||
|
||||
CargoEntity::CargoEntity(QString c_id, DeliveryPointEntity dest)
|
||||
CargoEntity::CargoEntity(QString c_id, DeliveryPointEntity *dest)
|
||||
{
|
||||
this->_cargo_id = c_id;
|
||||
this->_destination = dest;
|
||||
|
|
|
|||
|
|
@ -6,13 +6,16 @@
|
|||
#include <QString>
|
||||
|
||||
|
||||
class DeliveryPointEntity;
|
||||
class StorageEntity;
|
||||
class CargoEntity
|
||||
{
|
||||
QString _cargo_id;
|
||||
DeliveryPointEntity _destination;
|
||||
DeliveryPointEntity *_destination;
|
||||
|
||||
public:
|
||||
CargoEntity(QString _cargo_id, DeliveryPointEntity _destination);
|
||||
CargoEntity();
|
||||
CargoEntity(QString _cargo_id, DeliveryPointEntity *_destination);
|
||||
};
|
||||
|
||||
#endif // CARGOENTITY_H
|
||||
|
|
|
|||
|
|
@ -7,12 +7,15 @@
|
|||
#include <vector>
|
||||
|
||||
|
||||
class CargoEntity;
|
||||
class StorageEntity;
|
||||
class DeliveryPointEntity
|
||||
{
|
||||
QString _title;
|
||||
std::vector<StorageEntity> _storage;
|
||||
|
||||
public:
|
||||
DeliveryPointEntity();
|
||||
DeliveryPointEntity(QString title);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
|
||||
class DeliveryPointEntity;
|
||||
class CargoEntity;
|
||||
class StorageEntity
|
||||
{
|
||||
int _storage_id;
|
||||
|
|
@ -13,6 +14,7 @@ class StorageEntity
|
|||
std::vector<CargoEntity> _cargo;
|
||||
|
||||
public:
|
||||
StorageEntity();
|
||||
StorageEntity(int st_id, int mx_cap);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue