axis.hpp
Go to the documentation of this file.
1 #ifndef FANUC_POST_PROCESSOR_AXIS_HPP
2 #define FANUC_POST_PROCESSOR_AXIS_HPP
3 
4 #include <string>
5 
7 {
8 
9 class FanucAxis
10 {
11 public:
12  enum class AxisType
13  {
14  LINEAR,
15  ROTATIVE
16  };
17 
18  FanucAxis(const AxisType type,
19  const std::string name,
20  const double value = 0) :
21  type_(type),
22  name_(name),
23  value_(value)
24  {
25  }
26 
27  FanucAxis(const FanucAxis& other) :
28  type_(other.type_),
29  name_(other.name_),
30  value_(other.value_)
31  {
32  }
33 
34  FanucAxis& operator=(const FanucAxis& other)
35  {
36  value_ = other.value_;
37  return *this;
38  }
39 
40  virtual ~FanucAxis()
41  {
42  }
43 
44  const AxisType type_;
45  const std::string name_;
46  double value_;
47 };
48 
49 }
50 #endif
Definition: axis.hpp:6
double value_
Definition: axis.hpp:46
AxisType
Definition: axis.hpp:12
FanucAxis(const AxisType type, const std::string name, const double value=0)
Definition: axis.hpp:18
const std::string name_
Definition: axis.hpp:45
virtual ~FanucAxis()
Definition: axis.hpp:40
Definition: axis.hpp:9
FanucAxis & operator=(const FanucAxis &other)
Definition: axis.hpp:34
const AxisType type_
Definition: axis.hpp:44
FanucAxis(const FanucAxis &other)
Definition: axis.hpp:27


fanuc_post_processor
Author(s): Victor Lamoine - Institut Maupertuis
autogenerated on Mon Jun 10 2019 13:16:55