-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathcomment.h
45 lines (34 loc) · 838 Bytes
/
comment.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once
#include <stdint.h>
#include <string>
#include <vector>
/// @brief Type of commented value
enum class CommentTarget
{
/// @brief Comment is for CAN message
Message,
/// @brief Comment is for CAN message signal
Signal,
/// @brief Invalid type
Undefined
};
/// @brief Comment descripton
struct Comment_t
{
/// @brief Message ID for which comment is bound
uint32_t MsgId;
/// @brief Signal name for which comment is bound
std::string SigName;
/// @brief Comment target type
CommentTarget ca_target;
/// @brief Comment text
std::string Text;
};
/// @brief Value table inforamtion
struct ValTable_t
{
/// @brief Signal name for which value table is applied
std::string SigName;
/// @brief Value table names and values pairs
std::vector<std::pair<std::string, uint32_t>> vpairs{};
};