Danbias/Code/Network/NetworkDependencies/Translator.h

34 lines
753 B
C
Raw Normal View History

2013-11-21 14:49:30 +01:00
#ifndef NETWORK_DEPENDENCIES_TRANSLATOR_H
#define NETWORK_DEPENDENCIES_TRANSLATOR_H
//////////////////////////////////
// Created by Sam Svensson 2013 //
//////////////////////////////////
2013-11-21 14:49:30 +01:00
#include "Messages/MessagesInclude.h"
#include "Protocols.h"
#include "ITranslate.h"
#include "OysterByte.h"
2013-11-21 14:49:30 +01:00
namespace Oyster
{
namespace Network
{
class Translator : public ITranslate
{
public:
Translator () { /*msg = new unsigned char[1601];*/ };
~Translator() { /*if(msg != NULL) { delete [] this->msg; }*/ };
2013-11-21 14:49:30 +01:00
void Pack (Protocols::ProtocolHeader &header, OysterByte& bytes );
Protocols::ProtocolSet* Unpack (Protocols::ProtocolSet* set, OysterByte& bytes );
private:
//unsigned char* msg;
//OysterByte bytes;
2013-11-21 14:49:30 +01:00
};
}
}
#endif