Miscellany
public text v1 · immutable#include "Packet.h"
void Packet::addData (std::string rawData)
{
destination = rawData.substr(0,2);
commande = rawData.substr(2,2);
}
std::string Packet::getDestination ()
{
return destination;
}
std::string Packet::getCommande ()
{
return commande;
}
std::string Packet::getData ()
{
return data;
}
Packet::Packet ()
{
}
Packet::~Packet()
{
}