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 {
12  uint32_t value;
13  std::string description;
14  };
15 
16  std::string name;
17  bool is_multiplexed;
18  uint32_t start_bit;
19  uint32_t size;
20  bool is_bigendian;
21  bool is_signed;
22  double factor;
23  double offset;
24  double min;
25  double max;
26  std::string unit;
27  std::vector<std::string> receivers;
28  std::vector<SignalValueDescriptions> svDescriptions;
29 
30  Signal() = delete;
31  explicit Signal(std::string name,
32  bool is_multiplexed,
33  uint32_t start_bit,
34  uint32_t size,
35  bool is_bigendian,
36  bool is_signed,
37  double factor,
38  double offset,
39  double min,
40  double max,
41  std::string unit,
42  std::vector<std::string> recievers);
43 
44  virtual bool operator==(const Signal& rhs) const;
45  bool operator<(const Signal& rhs) const;
46 };
47 
48 std::ostream& operator<<(std::ostream& out, const Signal& sig);
49 
50 }
51 
52 #endif // __SIGNAL_HPP__
Definition: signal.hpp:10