comparison m-toolbox/classes/@ltpda_uoh/addHistoryWoChangingUUID.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 % ADDHISTORYWOCHANGINGUUID Add a history-object to the ltpda_uo object.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: Add a history-object to the ltpda_uoh object.
5 %
6 % CALL: obj = addHistoryWoChangingUUID(obj, minfo, h_pl, var_name, inhists, ...);
7 %
8 % VERSION: $Id: addHistoryWoChangingUUID.m,v 1.1 2009/08/12 12:31:15 ingo Exp $
9 %
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11
12 function varargout = addHistoryWoChangingUUID(varargin)
13
14 UUIDs = {varargin{1}.UUID};
15
16 if nargout == 0
17 addHistory(varargin{:});
18 for ii = 1:numel(varargin{1})
19 varargin{1}(ii).UUID = UUIDs{ii};
20 end
21 else
22 varargout{:} = addHistory(varargin{:});
23 for ii = 1:numel(varargout{1})
24 varargout{1}(ii).UUID = UUIDs{ii};
25 end
26 end
27
28 end