view m-toolbox/classes/+utils/@models/getInfo.m @ 52:daf4eab1a51e database-connection-manager tip

Fix. Default password should be [] not an empty string
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 07 Dec 2011 17:29:47 +0100
parents f0afece42f48
children
line wrap: on
line source

% GETINFO Get Info Object
% 
% CALL: utils.models.getInfo(modelname, @getModelDescription, @versionTable, version, @getFileVersion)
% 
% 
function ii = getInfo(varargin)
  modelname = varargin{1};
  getVersion = varargin{5};
  pls = utils.models.getDefaultPlist(varargin{2:end});
  % Build info object
  parts = regexp(modelname, '_', 'split');
  ii = minfo(modelname, parts{1}, 'ltpda', utils.const.categories.constructor, getVersion(), {}, pls);
  ii.setDescription(utils.models.getDescription(varargin{2:end}));
  fcn = utils.models.functionForVersion(varargin{2:end});
  ii.addChildren(fcn('info'));
end