5import isystem.connect
as ic
11def test_getExpressionType():
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
15 dataCtrl2 = ic.CDataController2(connMgr)
17 rt = dataCtrl2.getExpressionType(0,
"g_complexStruct")
21 print(f
"Name: {exp.Name()}")
22 print(f
"\tQualified name: {exp.QualifiedName()}")
23 print(f
"\tAddress: {exp.Address()}")
24 print(f
"\tModule: {exp.Module()}")
25 print(f
"\tMemory area: {exp.MemArea()}")
26 print(f
"\tNum of bytes: {exp.NumBytes()}")
27 print(f
"\tScope: {exp.Scope()}")
28 print(f
"\tArray dimension: {exp.ArrayDimension()}")
29 print(f
"\tArray first element: {exp.ArrayFirstElement()}")
30 print(f
"\tSize: {exp.Size()}")
31 print(f
"\tType: {exp.Type()}")
32 print(f
"\tType name: {exp.TypeName()}")
34 expType = exp.GetIType()
36 print(f
"\tType name: {expType.TypeName()}")
37 print(f
"\tType bit size: {expType.Type().m_byBitSize}")
40 children = rt.Children()
41 for index
in range(children.size()):
42 chData = children.at(index)
44 childrensNames.append(chData.Name())
45 print(f
"\tChildrens: {childrensNames}\n")
51if __name__ ==
"__main__":
52 test_getExpressionType()