Wyatt
1.0.1
Main Page
Classes
Files
File List
include
messages
MotorMessage.h
1
#pragma once
2
#include "messages/IMessage.h"
3
#include "exceptions/DataSizeException.h"
4
#include "DriveConstants.h"
5
10
class
MotorMessage
:
public
IMessage
{
11
12
public
:
13
21
MotorMessage
(
Hardware
hardware
,
int
data);
22
26
~MotorMessage
()
override
;
27
32
std::string
serialize
()
override
;
33
38
int
getData
();
39
40
private
:
44
int
data;
45
};
Hardware
Definition:
Hardware.h:11
MotorMessage::~MotorMessage
~MotorMessage() override
Definition:
MotorMessage.cpp:17
IMessage
Definition:
IMessage.h:10
MotorMessage::getData
int getData()
Definition:
MotorMessage.cpp:21
IMessage::hardware
Hardware hardware
Definition:
IMessage.h:45
MotorMessage
Definition:
MotorMessage.h:10
MotorMessage::MotorMessage
MotorMessage(Hardware hardware, int data)
Definition:
MotorMessage.cpp:4
MotorMessage::serialize
std::string serialize() override
Definition:
MotorMessage.cpp:25
Generated by
1.8.11