Wyatt  1.0.1
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 
EncoderMessage(Hardware hardware, double data)
std::string serialize() override
Hardware hardware
Definition: IMessage.h:45
~EncoderMessage() override