Mercurial > hg > ltpda
comparison m-toolbox/classes/@minfo/setFromEncodedInfo.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 function p = setFromEncodedInfo(p, info) | |
2 | |
3 | |
4 info = regexp(info, '#', 'split'); | |
5 | |
6 % info{1} is empty | |
7 | |
8 p.mname = info{2}; | |
9 p.mclass = info{3}; | |
10 p.mcategory = info{4}; | |
11 p.mversion = utils.xml.recoverVersionString(info{5}); | |
12 | |
13 args = eval(info{6}); | |
14 p.argsmin = args(1); | |
15 p.argsmax = args(2); | |
16 p.outmin = args(3); | |
17 p.outmax = args(4); | |
18 | |
19 | |
20 mod = info{7}; | |
21 p.modifier = strcmpi(mod, 'true'); | |
22 | |
23 % info{8}: version dummy. We have to keep it for backwards compatibility. | |
24 | |
25 if numel(info) >= 9 | |
26 p.description = info{9}; | |
27 end | |
28 | |
29 end |