Mercurial > hg > ltpda
annotate m-toolbox/classes/+utils/@xml/getHistoryFromUUID.m @ 42:f90d4f666cc7 database-connection-manager
Cleanup
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 18:04:34 +0100 |
parents | f0afece42f48 |
children |
rev | line source |
---|---|
0 | 1 |
2 function h = getHistoryFromUUID(hists, inhistUUID) | |
3 | |
4 h = []; | |
5 for ii = 1:numel(hists) | |
6 if strcmp(hists(ii).UUID, inhistUUID) | |
7 h = hists(ii); | |
8 break; | |
9 end | |
10 end | |
11 | |
12 if isempty(h) | |
13 error('### Didn''t find a history object with the UUID [%s]', inhistUUID) | |
14 end | |
15 | |
16 end |