@@ -98,6 +98,8 @@ void mexFunction(int nlhs,
98
98
.add (" open" , nixfile::open)
99
99
.reg (" blocks" , GETTER (std::vector<nix::Block>, nix::File, blocks))
100
100
.reg (" sections" , GETTER (std::vector<nix::Section>, nix::File, sections))
101
+ .reg (" hasBlock" , GETBYSTR (bool , nix::File, hasBlock))
102
+ .reg (" hasSection" , GETBYSTR (bool , nix::File, hasSection))
101
103
.reg (" deleteBlock" , REMOVER (nix::Block, nix::File, deleteBlock))
102
104
.reg (" deleteSection" , REMOVER (nix::Section, nix::File, deleteSection))
103
105
.reg (" openBlock" , GETBYSTR (nix::Block, nix::File, getBlock))
@@ -113,6 +115,8 @@ void mexFunction(int nlhs,
113
115
.reg (" sources" , &nix::Block::sources)
114
116
.reg (" tags" , &nix::Block::tags)
115
117
.reg (" multiTags" , &nix::Block::multiTags)
118
+ .reg (" hasDataArray" , GETBYSTR (bool , nix::Block, hasDataArray))
119
+ .reg (" hasSource" , GETBYSTR (bool , nix::Block, hasSource))
116
120
.reg (" groups" , &nix::Block::groups)
117
121
.reg (" hasTag" , GETBYSTR (bool , nix::Block, hasTag))
118
122
.reg (" hasMultiTag" , GETBYSTR (bool , nix::Block, hasMultiTag))
@@ -190,6 +194,7 @@ void mexFunction(int nlhs,
190
194
.reg (" createSource" , &nix::Source::createSource)
191
195
.reg (" deleteSource" , REMOVER (nix::Source, nix::Source, deleteSource))
192
196
.reg (" sources" , &nix::Source::sources)
197
+ .reg (" hasSource" , GETBYSTR (bool , nix::Source, hasSource))
193
198
.reg (" openSource" , GETBYSTR (nix::Source, nix::Source, getSource))
194
199
.reg (" openMetadataSection" , GETCONTENT (nix::Section, nix::Source, metadata))
195
200
.reg (" set_metadata" , SETTER (const std::string&, nix::Source, metadata))
@@ -203,6 +208,8 @@ void mexFunction(int nlhs,
203
208
.reg (" references" , GETTER (std::vector<nix::DataArray>, nix::Tag, references))
204
209
.reg (" features" , &nix::Tag::features)
205
210
.reg (" sources" , FILTER (std::vector<nix::Source>, nix::Tag, std::function<bool (const nix::Source &)>, sources))
211
+ .reg (" hasReference" , GETBYSTR (bool , nix::Tag, hasReference))
212
+ .reg (" hasFeature" , GETBYSTR (bool , nix::Tag, hasFeature))
206
213
.reg (" openReferenceDataArray" , GETBYSTR (nix::DataArray, nix::Tag, getReference))
207
214
.reg (" openFeature" , GETBYSTR (nix::Feature, nix::Tag, getFeature))
208
215
.reg (" openSource" , GETBYSTR (nix::Source, nix::Tag, getSource))
@@ -214,6 +221,9 @@ void mexFunction(int nlhs,
214
221
.reg (" set_type" , SETTER (const std::string&, nix::Tag, type))
215
222
.reg (" set_definition" , SETTER (const std::string&, nix::Tag, definition))
216
223
.reg (" set_none_definition" , SETTER (const boost::none_t , nix::Tag, definition))
224
+ .reg (" set_position" , SETTER (const std::vector<double >&, nix::Tag, position))
225
+ .reg (" set_extent" , SETTER (const std::vector<double >&, nix::Tag, extent))
226
+ .reg (" set_none_extent" , SETTER (const boost::none_t , nix::Tag, extent))
217
227
.reg (" removeReference" , REMOVER (nix::DataArray, nix::Tag, removeReference))
218
228
.reg (" removeSource" , REMOVER (nix::Source, nix::Tag, removeSource))
219
229
.reg (" deleteFeature" , REMOVER (nix::Feature, nix::Tag, deleteFeature));
@@ -229,12 +239,18 @@ void mexFunction(int nlhs,
229
239
.reg (" features" , &nix::MultiTag::features)
230
240
.reg (" sources" , FILTER (std::vector<nix::Source>, nix::MultiTag, std::function<bool (const nix::Source &)>, sources))
231
241
.reg (" hasPositions" , GETCONTENT (bool , nix::MultiTag, hasPositions))
242
+ .reg (" hasReference" , GETBYSTR (bool , nix::MultiTag, hasReference))
243
+ .reg (" hasFeature" , GETBYSTR (bool , nix::MultiTag, hasFeature))
232
244
.reg (" openPositions" , GETCONTENT (nix::DataArray, nix::MultiTag, positions))
233
245
.reg (" openExtents" , GETCONTENT (nix::DataArray, nix::MultiTag, extents))
234
246
.reg (" openReferences" , GETBYSTR (nix::DataArray, nix::MultiTag, getReference))
235
247
.reg (" openFeature" , GETBYSTR (nix::Feature, nix::MultiTag, getFeature))
236
248
.reg (" openSource" , GETBYSTR (nix::Source, nix::MultiTag, getSource))
237
249
.reg (" openMetadataSection" , GETCONTENT (nix::Section, nix::MultiTag, metadata))
250
+ .reg (" set_units" , SETTER (const std::vector<std::string>&, nix::MultiTag, units))
251
+ .reg (" set_none_units" , SETTER (const boost::none_t , nix::MultiTag, units))
252
+ .reg (" set_extents" , SETTER (const std::string&, nix::MultiTag, extents))
253
+ .reg (" set_none_extents" , SETTER (const boost::none_t , nix::MultiTag, extents))
238
254
.reg (" set_metadata" , SETTER (const std::string&, nix::MultiTag, metadata))
239
255
.reg (" set_none_metadata" , SETTER (const boost::none_t , nix::MultiTag, metadata))
240
256
.reg (" removeReference" , REMOVER (nix::DataArray, nix::MultiTag, removeReference))
@@ -246,7 +262,6 @@ void mexFunction(int nlhs,
246
262
methods->add (" MultiTag::addSource" , nixmultitag::add_source);
247
263
methods->add (" MultiTag::createFeature" , nixmultitag::create_feature);
248
264
methods->add (" MultiTag::addPositions" , nixmultitag::add_positions);
249
- methods->add (" MultiTag::addExtents" , nixmultitag::add_extents);
250
265
251
266
classdef<nix::Section>(" Section" , methods)
252
267
.desc (&nixsection::describe)
@@ -275,7 +290,10 @@ void mexFunction(int nlhs,
275
290
276
291
classdef<nix::Feature>(" Feature" , methods)
277
292
.desc (&nixfeature::describe)
278
- .reg (" openData" , GETCONTENT (nix::DataArray, nix::Feature, data));
293
+ .reg (" openData" , GETCONTENT (nix::DataArray, nix::Feature, data))
294
+ .reg (" setData" , SETTER (const std::string&, nix::Feature, data))
295
+ .reg (" getLinkType" , GETCONTENT (nix::LinkType, nix::Feature, linkType));
296
+ methods->add (" Feature::setLinkType" , nixfeature::set_link_type);
279
297
280
298
classdef<nix::Property>(" Property" , methods)
281
299
.desc (&nixproperty::describe)
@@ -346,4 +364,3 @@ void mexFunction(int nlhs,
346
364
mexErrMsgIdAndTxt (" nix:arg:dispatch" , " Unkown command" );
347
365
}
348
366
}
349
-
0 commit comments