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