82da6f9da92810cdbbf538013279acc8cf63197f
[openbsd] /
1 class myIntSynthProvider(object):
2
3     def __init__(self, valobj, dict):
4         self.valobj = valobj
5         self.val = self.valobj.GetChildMemberWithName("theValue")
6
7     def num_children(self):
8         return 0
9
10     def get_child_at_index(self, index):
11         return None
12
13     def get_child_index(self, name):
14         return None
15
16     def update(self):
17         return False
18
19     def has_children(self):
20         return False
21
22     def get_value(self):
23         return self.val
24
25
26 class myArraySynthProvider(object):
27
28     def __init__(self, valobj, dict):
29         self.valobj = valobj
30         self.array = self.valobj.GetChildMemberWithName("array")
31
32     def num_children(self, max_count):
33         if 16 < max_count:
34             return 16
35         return max_count
36
37     def get_child_at_index(self, index):
38         return None  # Keep it simple when this is not tested here.
39
40     def get_child_index(self, name):
41         return None  # Keep it simple when this is not tested here.
42
43     def has_children(self):
44         return True