@@ -53,37 +53,6 @@ struct fendpoint {
53
53
};
54
54
55
55
const std::vector<fendpoint> funcs = {
56
- // File
57
- { " File::createBlock" , nixfile::create_block },
58
- { " File::createSection" , nixfile::create_section },
59
-
60
- // Block
61
- { " Block::describe" , nixblock::describe },
62
-
63
- // Data Array
64
- { " DataArray::describe" , nixdataarray::describe },
65
- { " DataArray::readAll" , nixdataarray::read_all },
66
-
67
- // Tag
68
- { " Tag::describe" , nixtag::describe },
69
- { " Tag::retrieveData" , nixtag::retrieve_data },
70
- { " Tag::featureRetrieveData" , nixtag::retrieve_feature_data },
71
-
72
- // Multi Tag
73
- { " MultiTag::describe" , nixmultitag::describe },
74
- { " MultiTag::retrieveData" , nixmultitag::retrieve_data },
75
- { " MultiTag::featureRetrieveData" , nixmultitag::retrieve_feature_data },
76
-
77
- // Source
78
- { " Source::describe" , nixsource::describe },
79
-
80
- // Feature
81
- { " Feature::describe" , nixfeature::describe },
82
- { " Feature::linkType" , nixfeature::link_type },
83
-
84
- // Section
85
- { " Section::describe" , nixsection::describe },
86
- { " Section::properties" , nixsection::properties }
87
56
};
88
57
89
58
// glue "globals"
@@ -140,6 +109,8 @@ void mexFunction(int nlhs,
140
109
.reg (" deleteSection" , REMOVER (nix::Section, nix::File, deleteSection))
141
110
.reg (" openBlock" , GETBYSTR (nix::Block, nix::File, getBlock))
142
111
.reg (" openSection" , GETBYSTR (nix::Section, nix::File, getSection));
112
+ methods->add (" File::createBlock" , nixfile::create_block);
113
+ methods->add (" File::createSection" , nixfile::create_section);
143
114
144
115
classdef<nix::Block>(" Block" , methods)
145
116
.reg (" dataArrays" , &nix::Block::dataArrays)
@@ -157,17 +128,21 @@ void mexFunction(int nlhs,
157
128
.reg (" openTag" , GETBYSTR (nix::Tag, nix::Block, getTag))
158
129
.reg (" openMultiTag" , GETBYSTR (nix::MultiTag, nix::Block, getMultiTag))
159
130
.reg (" openMetadataSection" , GETCONTENT (nix::Section, nix::Block, metadata));
131
+ methods->add (" Block::describe" , nixblock::describe);
160
132
methods->add (" Block::createDataArray" , nixblock::create_data_array);
161
133
162
134
classdef<nix::DataArray>(" DataArray" , methods)
163
135
.reg (" sources" , GETSOURCES (IDataArray))
164
136
.reg (" openMetadataSection" , GETMETADATA (IDataArray));
137
+ methods->add (" DataArray::describe" , nixdataarray::describe);
138
+ methods->add (" DataArray::readAll" , nixdataarray::read_all);
165
139
methods->add (" DataArray::writeAll" , nixdataarray::write_all);
166
140
167
141
classdef<nix::Source>(" Source" , methods)
168
142
.reg (" sources" , &nix::Source::sources)
169
143
.reg (" openSource" , GETBYSTR (nix::Source, nix::Source, getSource))
170
144
.reg (" openMetadataSection" , GETCONTENT (nix::Section, nix::Source, metadata));
145
+ methods->add (" Source::describe" , nixsource::describe);
171
146
172
147
classdef<nix::Tag>(" Tag" , methods)
173
148
.reg (" references" , GETTER (std::vector<nix::DataArray>, nix::Tag, references))
@@ -177,6 +152,9 @@ void mexFunction(int nlhs,
177
152
.reg (" openFeature" , GETBYSTR (nix::Feature, nix::Tag, getFeature))
178
153
.reg (" openSource" , GETBYSTR (nix::Source, nix::Tag, getSource))
179
154
.reg (" openMetadataSection" , GETCONTENT (nix::Section, nix::Tag, metadata));
155
+ methods->add (" Tag::describe" , nixtag::describe);
156
+ methods->add (" Tag::retrieveData" , nixtag::retrieve_data);
157
+ methods->add (" Tag::featureRetrieveData" , nixtag::retrieve_feature_data);
180
158
181
159
classdef<nix::MultiTag>(" MultiTag" , methods)
182
160
.reg (" references" , GETTER (std::vector<nix::DataArray>, nix::MultiTag, references))
@@ -189,6 +167,9 @@ void mexFunction(int nlhs,
189
167
.reg (" openFeature" , GETBYSTR (nix::Feature, nix::MultiTag, getFeature))
190
168
.reg (" openSource" , GETBYSTR (nix::Source, nix::MultiTag, getSource))
191
169
.reg (" openMetadataSection" , GETCONTENT (nix::Section, nix::MultiTag, metadata));
170
+ methods->add (" MultiTag::describe" , nixmultitag::describe);
171
+ methods->add (" MultiTag::retrieveData" , nixmultitag::retrieve_data);
172
+ methods->add (" MultiTag::featureRetrieveData" , nixmultitag::retrieve_feature_data);
192
173
193
174
classdef<nix::Section>(" Section" , methods)
194
175
.reg (" sections" , &nix::Section::sections)
@@ -197,9 +178,13 @@ void mexFunction(int nlhs,
197
178
.reg (" hasSection" , GETBYSTR (bool , nix::Section, hasSection))
198
179
.reg (" link" , GETCONTENT (nix::Section, nix::Section, link))
199
180
.reg (" parent" , GETCONTENT (nix::Section, nix::Section, parent));
181
+ methods->add (" Section::describe" , nixsection::describe);
182
+ methods->add (" Section::properties" , nixsection::properties);
200
183
201
184
classdef<nix::Feature>(" Feature" , methods)
202
185
.reg (" openData" , GETCONTENT (nix::DataArray, nix::Feature, data));
186
+ methods->add (" Feature::describe" , nixfeature::describe);
187
+ methods->add (" Feature::linkType" , nixfeature::link_type);
203
188
204
189
mexAtExit (on_exit);
205
190
});
0 commit comments