|
24 | 24 | % ----------------
|
25 | 25 | % Block methods
|
26 | 26 | % ----------------
|
27 |
| - |
28 |
| - function retObj = openBlock(obj, id_or_name) |
29 |
| - retObj = nix.Utils.open_entity(obj, ... |
30 |
| - 'File::openBlock', id_or_name, @nix.Block); |
31 |
| - end |
32 |
| - |
| 27 | + |
33 | 28 | function newBlock = createBlock(obj, name, type)
|
34 | 29 | newBlock = nix.Block(nix_mx('File::createBlock', obj.nix_handle, name, type));
|
35 | 30 | obj.blocksCache.lastUpdate = 0;
|
36 | 31 | end;
|
37 | 32 |
|
| 33 | + function hasBlock = hasBlock(obj, id_or_name) |
| 34 | + hasBlock = nix_mx('File::hasBlock', obj.nix_handle, id_or_name); |
| 35 | + end; |
| 36 | + |
| 37 | + function retObj = openBlock(obj, id_or_name) |
| 38 | + retObj = nix.Utils.open_entity(obj, ... |
| 39 | + 'File::openBlock', id_or_name, @nix.Block); |
| 40 | + end |
| 41 | + |
38 | 42 | function delCheck = deleteBlock(obj, del)
|
39 | 43 | [delCheck, obj.blocksCache] = nix.Utils.delete_entity(obj, ...
|
40 | 44 | del, 'nix.Block', 'File::deleteBlock', obj.blocksCache);
|
|
43 | 47 | % ----------------
|
44 | 48 | % Section methods
|
45 | 49 | % ----------------
|
46 |
| - |
47 |
| - function retObj = openSection(obj, id_or_name) |
48 |
| - retObj = nix.Utils.open_entity(obj, ... |
49 |
| - 'File::openSection', id_or_name, @nix.Section); |
50 |
| - end |
51 | 50 |
|
52 | 51 | function newSec = createSection(obj, name, type)
|
53 | 52 | newSec = nix.Section(nix_mx('File::createSection', obj.nix_handle, name, type));
|
54 | 53 | obj.sectionsCache.lastUpdate = 0;
|
55 | 54 | end;
|
56 | 55 |
|
| 56 | + function hasSec = hasSection(obj, id_or_name) |
| 57 | + hasSec = nix_mx('File::hasSection', obj.nix_handle, id_or_name); |
| 58 | + end; |
| 59 | + |
| 60 | + function retObj = openSection(obj, id_or_name) |
| 61 | + retObj = nix.Utils.open_entity(obj, ... |
| 62 | + 'File::openSection', id_or_name, @nix.Section); |
| 63 | + end |
| 64 | + |
57 | 65 | function delCheck = deleteSection(obj, del)
|
58 | 66 | delCheck = nix.Utils.delete_entity(obj, del, 'nix.Section', 'File::deleteSection');
|
59 | 67 | obj.sectionsCache.lastUpdate = 0;
|
|
0 commit comments