All pastes #794446 Raw Edit

Miscellany

public text v1 · immutable
#794446 ·published 2007-11-23 03:40 UTC
rendered paste body
#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()
{

}