comparison m-toolbox/classes/@provenance/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 s = regexp(info, '#', 'split');
4
5 % info{1} is empty
6 p.creator = s{2};
7 p.ip = s{3};
8 p.hostname = s{4};
9 p.os = s{5};
10 p.matlab_version = s{6};
11 p.sigproc_version = s{7};
12 p.symbolic_math_version = s{8};
13 p.optimization_version = s{9};
14 p.database_version = s{10};
15 p.control_version = s{11};
16 p.ltpda_version = s{12};
17 % s{13}: version dummy. We have to keep it for backwards compatibility.
18
19 % It is only possible to read the object if the object was saved with the
20 % same or lower LTPDA version as the current version.
21 v = ver('LTPDA');
22 if utils.helper.ver2num(v.Version) < utils.helper.ver2num(p.ltpda_version)
23 error('### The object was saved with a higher LTPDA version than you use %s. Please update your LTPDA version.', p.ltpda_version);
24 end
25
26 end