@@ -53,12 +53,7 @@ struct fendpoint {
53
53
};
54
54
55
55
const std::vector<fendpoint> funcs = {
56
- { " Entity::destroy" , entity_destroy },
57
- { " Entity::updatedAt" , entity_updated_at },
58
-
59
56
// File
60
- { " File::open" , nixfile::open },
61
- { " File::describe" , nixfile::describe },
62
57
{ " File::listBlocks" , nixfile::list_blocks },
63
58
{ " File::listSections" , nixfile::list_sections },
64
59
{ " File::createBlock" , nixfile::create_block },
@@ -147,7 +142,12 @@ void mexFunction(int nlhs,
147
142
148
143
methods = new registry{};
149
144
145
+ methods->add (" Entity::destory" , entity_destroy);
146
+ methods->add (" Entity::updatedAt" , entity_updated_at);
147
+
150
148
classdef<nix::File>(" File" , methods)
149
+ .desc (&nixfile::describe)
150
+ .add (" open" , nixfile::open)
151
151
.reg (" blocks" , GETTER (std::vector<nix::Block>, nix::File, blocks))
152
152
.reg (" sections" , GETTER (std::vector<nix::Section>, nix::File, sections))
153
153
.reg (" deleteBlock" , REMOVER (nix::Block, nix::File, deleteBlock))
0 commit comments