dbc  ..
signal.hpp
1 
2 #ifndef __SIGNAL_HPP__
3 #define __SIGNAL_HPP__
4 
5 #include <iostream>
6 #include <string>
7 #include <vector>
8 
9 namespace libdbc {
10 struct Signal {
11  std::string name;
12  bool is_multiplexed;
13  uint32_t start_bit;
14  uint32_t size;
15  bool is_bigendian;
16  bool is_signed;
17  double factor;
18  double offset;
19  double min;
20  double max;
21  std::string unit;
22  std::vector<std::string> receivers;
23 
24  Signal() = delete;
25  explicit Signal(std::string name,
26  bool is_multiplexed,
27  uint32_t start_bit,
28  uint32_t size,
29  bool is_bigendian,
30  bool is_signed,
31  double factor,
32  double offset,
33  double min,
34  double max,
35  std::string unit,
36  std::vector<std::string> recievers);
37 
38  virtual bool operator==(const Signal& rhs) const;
39  bool operator<(const Signal& rhs) const;
40 };
41 
42 std::ostream& operator<<(std::ostream& out, const Signal& sig);
43 
44 }
45 
46 #endif // __SIGNAL_HPP__
Definition: signal.hpp:10