All pastes #796113 Raw Edit

Someone

public text v1 · immutable
#796113 ·published 2007-11-24 19:53 UTC
rendered paste body
#ifndef CLASS_PACKET
#define CLASS_PACKET

class Packet
{
	public :
		// Reception de données //
		void addData (std::string);
		int getDestination ();
		std::string getCommande();
		std::string getData();

		// Envoie de données //
		void setDestination(int);
		void setCommande (std::string);
		void setData (std::string);
		std::string getRequete();

		// Constructeur et destructeur //
		Packet();
		~Packet();

	private :
		std::string _data;
		int _destination;
		std::string _commande;
};

#endif