view m-toolbox/classes/@ltpda_uoh/addHistoryWoChangingUUID.m @ 5:5a49956df427 database-connection-manager

LTPDAPreferences panel for new LTPDADatabaseConnectionManager
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

% ADDHISTORYWOCHANGINGUUID Add a history-object to the ltpda_uo object.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% DESCRIPTION: Add a history-object to the ltpda_uoh object.
%
% CALL:        obj = addHistoryWoChangingUUID(obj, minfo, h_pl, var_name, inhists, ...);
%
% VERSION:     $Id: addHistoryWoChangingUUID.m,v 1.1 2009/08/12 12:31:15 ingo Exp $
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function varargout = addHistoryWoChangingUUID(varargin)
  
  UUIDs = {varargin{1}.UUID};
  
  if nargout == 0
    addHistory(varargin{:});
    for ii = 1:numel(varargin{1})
      varargin{1}(ii).UUID = UUIDs{ii};
    end
  else
    varargout{:} = addHistory(varargin{:});
    for ii = 1:numel(varargout{1})
      varargout{1}(ii).UUID = UUIDs{ii};
    end
  end
  
end