From 9301c4e0fdd48460e5ac200ce00d442480ab537e Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 22 Nov 2021 17:00:37 +0100 Subject: [PATCH] Added Copyconstrucotr for base and made inheritance public --- DTO/beaconPacket.hpp | 8 +++++++- DTO/probeRequestPacket.hpp | 10 ++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/DTO/beaconPacket.hpp b/DTO/beaconPacket.hpp index 67846ee..36caa36 100644 --- a/DTO/beaconPacket.hpp +++ b/DTO/beaconPacket.hpp @@ -4,8 +4,14 @@ #include "./packet.hpp" #include -class BeaconPacket : Packet{ +class BeaconPacket : public Packet{ public: + BeaconPacket() + {} + BeaconPacket(const Packet &packet) + : Packet(packet) + {} + std::string ssid; }; diff --git a/DTO/probeRequestPacket.hpp b/DTO/probeRequestPacket.hpp index a2792b9..ace4e23 100644 --- a/DTO/probeRequestPacket.hpp +++ b/DTO/probeRequestPacket.hpp @@ -4,9 +4,15 @@ #include "./packet.hpp" #include -class ProbeRequestPacket : Packet{ +class ProbeRequestPacket : public Packet{ public: - std::string requestSSID; + ProbeRequestPacket() + {} + ProbeRequestPacket(const Packet &packet) + : Packet(packet) + {} + + std::string requestSsid; }; #endif /* CD2BF199_8153_4F10_A85C_50883FAD66A8 */