Motion Master
Loading...
Searching...
No Matches
machine_message.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include "motion-master.pb.h"
6
8 public:
9 enum class Protocol { kAll, kZmq, kWs };
10
11 Protocol get_protocol() const;
12
13 const std::string &get_connection_id() const;
14
15 const motionmaster::MotionMasterMessage &get_message() const;
16
17 protected:
19 MachineMessage(Protocol protocol, std::string &connection_id,
20 motionmaster::MotionMasterMessage &message);
21
22 private:
23 Protocol protocol_;
24 std::string connection_id_;
25 motionmaster::MotionMasterMessage message_;
26};
Definition: machine_message.h:7
const motionmaster::MotionMasterMessage & get_message() const
Definition: machine_message.cc:21
Protocol get_protocol() const
Definition: machine_message.cc:13
Protocol
Definition: machine_message.h:9
const std::string & get_connection_id() const
Definition: machine_message.cc:17