Added Copyconstrucotr for base and made inheritance public

OLD_dev
Ruakij 3 years ago
parent 4d8597b1d6
commit 9301c4e0fd

@ -4,8 +4,14 @@
#include "./packet.hpp" #include "./packet.hpp"
#include <string> #include <string>
class BeaconPacket : Packet{ class BeaconPacket : public Packet{
public: public:
BeaconPacket()
{}
BeaconPacket(const Packet &packet)
: Packet(packet)
{}
std::string ssid; std::string ssid;
}; };

@ -4,9 +4,15 @@
#include "./packet.hpp" #include "./packet.hpp"
#include <string> #include <string>
class ProbeRequestPacket : Packet{ class ProbeRequestPacket : public Packet{
public: public:
std::string requestSSID; ProbeRequestPacket()
{}
ProbeRequestPacket(const Packet &packet)
: Packet(packet)
{}
std::string requestSsid;
}; };
#endif /* CD2BF199_8153_4F10_A85C_50883FAD66A8 */ #endif /* CD2BF199_8153_4F10_A85C_50883FAD66A8 */

Loading…
Cancel
Save