Wyatt
1.0.1
Main Page
Classes
Files
File List
include
messages
EncoderMessage.h
1
//
2
// Created by Tucker Haydon on 4/25/17.
3
//
4
5
#pragma once
6
7
#include "messages/IMessage.h"
8
#include "Hardware.h"
9
#include <string>
10
15
class
EncoderMessage
:
public
IMessage
{
16
public
:
23
EncoderMessage
(
Hardware
hardware
,
double
data);
24
28
~EncoderMessage
()
override
;
29
34
std::string
serialize
()
override
;
35
40
double
getData
();
41
42
private
:
46
double
data;
47
};
48
49
50
Hardware
Definition:
Hardware.h:11
IMessage
Definition:
IMessage.h:10
EncoderMessage::EncoderMessage
EncoderMessage(Hardware hardware, double data)
Definition:
EncoderMessage.cpp:7
EncoderMessage::serialize
std::string serialize() override
Definition:
EncoderMessage.cpp:23
IMessage::hardware
Hardware hardware
Definition:
IMessage.h:45
EncoderMessage
Definition:
EncoderMessage.h:15
EncoderMessage::getData
double getData()
Definition:
EncoderMessage.cpp:19
EncoderMessage::~EncoderMessage
~EncoderMessage() override
Definition:
EncoderMessage.cpp:15
Generated by
1.8.11