@@ -55,6 +55,7 @@ static void on_exit() {
55
55
}
56
56
57
57
#define GETTER (type, class, name ) static_cast <type(class ::*)()const >(&class ::name)
58
+ #define SETTER (type, class, name ) static_cast <void (class ::*)(type)>(&class ::name)
58
59
#define GETBYSTR (type, class, name ) static_cast <type(class ::*)(const std::string &)const >(&class ::name)
59
60
#define GETCONTENT (type, class, name ) static_cast <type(class ::*)()const >(&class ::name)
60
61
#define GETSOURCES (base__ ) static_cast <std::vector<nix::Source>(nix::base::EntityWithSources<nix::base::base__>::*)(std::function<bool (const nix::Source &)>)const >(&nix::base::EntityWithSources<nix::base::base__>::sources)
@@ -104,7 +105,6 @@ void mexFunction(int nlhs,
104
105
.reg (" dataArrays" , &nix::Block::dataArrays)
105
106
.reg (" createSource" , &nix::Block::createSource)
106
107
.reg (" deleteSource" , REMOVER (nix::Source, nix::Block, deleteSource))
107
- // .reg("createDataArray", static_cast<nix::DataArray(nix::Block::*)(const std::string &, const std::string &, nix::DataType, const nix::NDSize &)>(&nix::Block::createDataArray))
108
108
.reg (" createTag" , &nix::Block::createTag)
109
109
.reg (" createMultiTag" , &nix::Block::createMultiTag)
110
110
.reg (" sources" , &nix::Block::sources)
@@ -173,6 +173,7 @@ void mexFunction(int nlhs,
173
173
.reg (" hasSection" , GETBYSTR (bool , nix::Section, hasSection))
174
174
.reg (" link" , GETCONTENT (nix::Section, nix::Section, link))
175
175
.reg (" parent" , GETCONTENT (nix::Section, nix::Section, parent));
176
+ // .reg("set_repository", SETTER(const std::string&, nix::Section, repository));
176
177
methods->add (" Section::properties" , nixsection::properties);
177
178
178
179
classdef<nix::Feature>(" Feature" , methods)
0 commit comments