Mercurial > hg > ltpda
comparison m-toolbox/classes/@ltpda_uoh/fromRepository.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 % Retrieve a ltpda_uo from a repository | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % FUNCTION: fromRepository | |
5 % | |
6 % DESCRIPTION: Retrieve a ltpda_uo from a repository | |
7 % | |
8 % CALL: obj = fromRepository(pl) | |
9 % | |
10 % PARAMETER: pl: Parameter list object | |
11 % | |
12 % VERSION: $Id: fromRepository.m,v 1.20 2011/08/15 12:59:04 hewitson Exp $ | |
13 % | |
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
15 function objs = fromRepository(obj, pli) | |
16 | |
17 VERSION = 'ltpda_uoh: $Id: fromRepository.m,v 1.20 2011/08/15 12:59:04 hewitson Exp $'; | |
18 | |
19 % get object info | |
20 ii = obj.getInfo(class(obj), 'From Repository'); | |
21 % Set the method version string in the minfo object | |
22 ii.setMversion([VERSION '-->' ii.mversion]); | |
23 | |
24 [objs, plh, ii] = fromRepository@ltpda_uo(obj, pli, ii); | |
25 | |
26 for ll = 1:numel(objs) | |
27 %---- Add history | |
28 objs(ll).addHistoryWoChangingUUID(ii, plh(ll), [], objs(ll).hist); | |
29 | |
30 % Set properties from the plist | |
31 objs.setObjectProperties(plh(ll)); | |
32 end | |
33 | |
34 | |
35 end | |
36 |