|
1 | 1 | classdef SourcesMixIn < handle
|
2 | 2 | %SourcesMixIn
|
3 | 3 | % mixin class for nix entities that can be related with sources
|
| 4 | + % depends on |
| 5 | + % - nix.Entity |
| 6 | + % - nix.Dynamic |
| 7 | + |
| 8 | + properties (Abstract, Access = protected) |
| 9 | + alias |
| 10 | + end |
4 | 11 |
|
5 | 12 | methods
|
6 | 13 | function obj = SourcesMixIn()
|
|
9 | 16 |
|
10 | 17 | function [] = add_source(obj, add_this)
|
11 | 18 | obj.sourcesCache = nix.Utils.add_entity(obj, ...
|
12 |
| - add_this, 'nix.Source', 'Tag::addSource', obj.sourcesCache); |
| 19 | + add_this, 'nix.Source', ... |
| 20 | + strcat(obj.alias, '::addSource'), obj.sourcesCache); |
13 | 21 | end;
|
14 | 22 |
|
15 | 23 | function delCheck = remove_source(obj, del)
|
16 | 24 | [delCheck, obj.sourcesCache] = nix.Utils.delete_entity(obj, ...
|
17 |
| - del, 'nix.Source', 'Tag::removeSource', obj.sourcesCache); |
| 25 | + del, 'nix.Source', strcat(obj.alias, '::removeSource'), ... |
| 26 | + obj.sourcesCache); |
18 | 27 | end;
|
19 | 28 |
|
20 | 29 | function retObj = open_source(obj, id_or_name)
|
21 | 30 | retObj = nix.Utils.open_entity(obj, ...
|
22 |
| - 'Tag::openSource', id_or_name, @nix.Source); |
| 31 | + strcat(obj.alias, '::openSource'), id_or_name, ... |
| 32 | + @nix.Source); |
23 | 33 | end;
|
24 | 34 | end
|
25 | 35 |
|
|
0 commit comments