40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/openc3/tools/table_manager/table_item_parser.rb', line 40
def create_table_item(table)
name = @parser.parameters[0]
if table.type == :ROW_COLUMN
name = "#{name}0"
table.num_columns += 1
end
item =
TableItem.new(
name,
get_bit_offset,
get_bit_size,
get_data_type,
get_endianness(table),
get_array_size,
:ERROR,
) item.range = get_range
item.default = get_default
item.description = get_description
if append?
item = table.append(item)
else
item = table.define(item)
end
item
end
|