forked from Xamla/ROS.NET
-
Notifications
You must be signed in to change notification settings - Fork 2
/
MsgFieldInfo.cs
36 lines (34 loc) · 970 Bytes
/
MsgFieldInfo.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FauxMessages
{
public class MsgFieldInfo
{
public string ConstVal;
public bool IsArray;
public bool IsConst;
public bool IsPrimitive;
public bool IsComplexType;
public int Length = -1;
public string Name;
public string Type;
public MsgFieldInfo(string name, bool isPrimitive, string type, bool isConst, string constVal, bool isArray,
string lengths, bool complexType)
{
Name = name;
IsArray = isArray;
Type = type;
IsPrimitive = isPrimitive;
IsComplexType = complexType;
IsConst = isConst;
ConstVal = constVal;
if (!string.IsNullOrWhiteSpace(lengths))
{
Length = int.Parse(lengths);
}
}
}
}