Home > classes > @history > get.m

get

PURPOSE ^

GET get history object properties.

SYNOPSIS ^

function val = get(h, propName)

DESCRIPTION ^

 GET get history object properties.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: GET get history object properties.

 CALL: name    = get(h, 'name');
       ver     = get(h, 'version');
       pl      = get(h, 'plist');
       inhist  = get(h, 'inhist');
       invars  = get(h, 'invars');
       n       = get(h, 'n');
       pn      = get(h, 'pn');
       created = get(h, 'created');
       consver = get(h, 'consver');

 VERSION: $Id: get.m,v 1.5 2007/07/05 12:12:16 ingo Exp $

 HISTORY: 30-01-07 M Hewitson
             Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val = get(h, propName)
0002 % GET get history object properties.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: GET get history object properties.
0007 %
0008 % CALL: name    = get(h, 'name');
0009 %       ver     = get(h, 'version');
0010 %       pl      = get(h, 'plist');
0011 %       inhist  = get(h, 'inhist');
0012 %       invars  = get(h, 'invars');
0013 %       n       = get(h, 'n');
0014 %       pn      = get(h, 'pn');
0015 %       created = get(h, 'created');
0016 %       consver = get(h, 'consver');
0017 %
0018 % VERSION: $Id: get.m,v 1.5 2007/07/05 12:12:16 ingo Exp $
0019 %
0020 % HISTORY: 30-01-07 M Hewitson
0021 %             Creation
0022 %
0023 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0024 
0025 switch propName
0026   case 'name'
0027     val = h.name;
0028   case 'version'
0029     val = h.version;
0030   case 'plist'
0031     val = h.plist;
0032   case 'inhists'
0033     val = h.inhists;
0034   case 'invars'
0035     val = h.invars;
0036   case 'n'
0037     val = h.n;
0038   case 'pn'
0039     val = h.pn;
0040   case 'created'
0041     val = h.created;
0042   case 'consver'
0043     val = h.consver;
0044   otherwise
0045     error([propName, ' is not a valid history property.']);
0046 end
0047

Generated on Mon 03-Sep-2007 12:12:34 by m2html © 2003