view m-toolbox/classes/@unit/loadobj.m @ 51:9d5c88356247 database-connection-manager

Make unit tests database connection parameters configurable
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 07 Dec 2011 17:24:37 +0100
parents f0afece42f48
children
line wrap: on
line source

% LOADOBJ is called by the load function for user objects.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% DESCRIPTION: LOADOBJ is called by the load function for user objects.
%              When an object is loaded from a MAT-file, the load function calls
%              the loadobj method if the structure of the object is changed.
%
% VERSION:     $Id: loadobj.m,v 1.2 2009/08/28 11:54:28 ingo Exp $
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function objs = loadobj(objs)
  
  if isstruct(objs)
    for kk = 1:numel(objs)
      objs(kk).class = 'unit';
      objs(kk).tbxver = '1.0';
    end
    objs = unit(objs);
  end
  
end