Wyatt
1.0.1
Main Page
Classes
Files
File List
include
messages
IMessage.h
1
2
#pragma once
3
#include "Hardware.h"
4
#include <string>
5
#include "exceptions/MessageLengthException.h"
6
10
class
IMessage
{
11
public
:
12
17
IMessage
(
Hardware
hardware
) {
18
this->hardware =
hardware
;
19
}
20
24
virtual
~IMessage
() {};
25
30
Hardware
getHardware
() {
31
return
this->
hardware
;
32
}
33
38
virtual
std::string
serialize
() = 0;
39
40
41
protected
:
45
Hardware
hardware
;
46
};
IMessage::IMessage
IMessage(Hardware hardware)
Definition:
IMessage.h:17
Hardware
Definition:
Hardware.h:11
IMessage
Definition:
IMessage.h:10
IMessage::getHardware
Hardware getHardware()
Definition:
IMessage.h:30
IMessage::hardware
Hardware hardware
Definition:
IMessage.h:45
IMessage::serialize
virtual std::string serialize()=0
IMessage::~IMessage
virtual ~IMessage()
Definition:
IMessage.h:24
Generated by
1.8.11