comparison m-toolbox/classes/@ltpda_uo/retrieve.m @ 9:fbbfcd56e449 database-connection-manager

Remove dead code
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents 2f5c9bd7d95d
children 75007001cbfe
comparison
equal deleted inserted replaced
8:2f5c9bd7d95d 9:fbbfcd56e449
31 % VERSION: $Id: retrieve.m,v 1.28 2011/07/01 14:38:57 ingo Exp $ 31 % VERSION: $Id: retrieve.m,v 1.28 2011/07/01 14:38:57 ingo Exp $
32 % 32 %
33 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 33 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
34 34
35 function varargout = retrieve(varargin) 35 function varargout = retrieve(varargin)
36
37 % Check if this is a call for parameters
38 if utils.helper.isinfocall(varargin{:})
39 varargout{1} = getInfo(varargin{3});
40 return
41 end
42 36
43 import utils.const.* 37 import utils.const.*
44 utils.helper.msg(msg.MNAME, 'running %s/%s', mfilename('class'), mfilename); 38 utils.helper.msg(msg.MNAME, 'running %s/%s', mfilename('class'), mfilename);
45 39
46 if numel(varargin) < 2 40 if numel(varargin) < 2
196 for k=1:nargout 190 for k=1:nargout
197 varargout{k} = objs{k}; 191 varargout{k} = objs{k};
198 end 192 end
199 end 193 end
200 end 194 end
201
202 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
203 % Local Functions %
204 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
205
206 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
207 %
208 function ii = getInfo(varargin)
209 if nargin == 1 && strcmpi(varargin{1}, 'None')
210 sets = {};
211 pl = [];
212 else
213 sets = {'Default'};
214 pl = getDefaultPlist;
215 end
216 % Build info object
217 ii = minfo(mfilename, 'ltpda_uo', 'ltpda', utils.const.categories.internal, '$Id: retrieve.m,v 1.28 2011/07/01 14:38:57 ingo Exp $', sets, pl);
218 ii.setModifier(false);
219 end
220
221 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
222 %
223 function plout = getDefaultPlist()
224 persistent pl;
225 if exist('pl', 'var')==0 || isempty(pl)
226 pl = buildplist();
227 end
228 plout = pl;
229 end
230
231 function plo = buildplist()
232 plo = plist();
233
234 p = param({'conn', 'A database object'}, paramValue.EMPTY_DOUBLE);
235 plo.append(p);
236
237 p = param({'ids', 'IDs which should be collected'}, paramValue.EMPTY_DOUBLE);
238 plo.append(p);
239 end