You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: +DSS_MATLAB/IActiveClass.m
+18-14Lines changed: 18 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,6 @@
11
11
% NumElements - Number of elements in this class. Same as Count property.
12
12
% ActiveClassParent - Get the name of the parent class of the active class
13
13
14
-
properties (Access=protected)
15
-
apiutil
16
-
end
17
-
18
14
properties
19
15
ActiveClassName
20
16
AllNames
@@ -28,54 +24,62 @@
28
24
29
25
methods (Access=public)
30
26
functionobj= IActiveClass(apiutil)
31
-
obj.apiutil=apiutil;
27
+
obj@DSS_MATLAB.Base(apiutil);
32
28
end
33
29
34
30
end
35
31
methods
36
32
37
33
functionresult=get.ActiveClassName(obj)
38
34
% (read-only) Returns name of active class.
39
-
result = calllib('dss_capi_v7', 'ActiveClass_Get_ActiveClassName');
35
+
result = calllib(obj.libname, 'ActiveClass_Get_ActiveClassName');
36
+
obj.CheckForError();
40
37
end
41
38
42
39
functionresult=get.AllNames(obj)
43
40
% (read-only) Array of strings consisting of all element names in the active class.
44
-
result =DSS_MATLAB.get_string_array('ActiveClass_Get_AllNames');
41
+
result =obj.apiutil.get_string_array('ActiveClass_Get_AllNames');
42
+
obj.CheckForError();
45
43
end
46
44
47
45
functionresult=get.Count(obj)
48
46
% (read-only) Number of elements in Active Class. Same as NumElements Property.
49
-
result = calllib('dss_capi_v7', 'ActiveClass_Get_Count');
47
+
result = calllib(obj.libname, 'ActiveClass_Get_Count');
48
+
obj.CheckForError();
50
49
end
51
50
52
51
functionresult=get.First(obj)
53
52
% (read-only) Sets first element in the active class to be the active DSS object. If object is a CktElement, ActiveCktELment also points to this element. Returns 0 if none.
54
-
result = calllib('dss_capi_v7', 'ActiveClass_Get_First');
53
+
result = calllib(obj.libname, 'ActiveClass_Get_First');
54
+
obj.CheckForError();
55
55
end
56
56
57
57
functionresult=get.Name(obj)
58
58
% Name of the Active Element of the Active Class
59
-
result = calllib('dss_capi_v7', 'ActiveClass_Get_Name');
59
+
result = calllib(obj.libname, 'ActiveClass_Get_Name');
% (read-only) Sets next element in active class to be the active DSS object. If object is a CktElement, ActiveCktElement also points to this element. Returns 0 if no more.
68
-
result = calllib('dss_capi_v7', 'ActiveClass_Get_Next');
69
+
result = calllib(obj.libname, 'ActiveClass_Get_Next');
70
+
obj.CheckForError();
69
71
end
70
72
71
73
functionresult=get.NumElements(obj)
72
74
% (read-only) Number of elements in this class. Same as Count property.
73
-
result = calllib('dss_capi_v7', 'ActiveClass_Get_NumElements');
75
+
result = calllib(obj.libname, 'ActiveClass_Get_NumElements');
76
+
obj.CheckForError();
74
77
end
75
78
76
79
functionresult=get.ActiveClassParent(obj)
77
80
% Get the name of the parent class of the active class
78
-
result = calllib('dss_capi_v7', 'ActiveClass_Get_ActiveClassParent');
81
+
result = calllib(obj.libname, 'ActiveClass_Get_ActiveClassParent');
0 commit comments