Home > classes > @history > get.m

get

PURPOSE ^

GET get history object properties.

SYNOPSIS ^

function val = get(h, propName)

DESCRIPTION ^

 GET get history object properties.

   name = get(h, 'name');
    ver = get(h, 'version');
     pl = get(h, 'plist');
 
 M Hewitson 30-01-07
 
 $Id: get.html,v 1.1 2007/06/08 14:15:05 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val = get(h, propName)
0002 
0003 % GET get history object properties.
0004 %
0005 %   name = get(h, 'name');
0006 %    ver = get(h, 'version');
0007 %     pl = get(h, 'plist');
0008 %
0009 % M Hewitson 30-01-07
0010 %
0011 % $Id: get.html,v 1.1 2007/06/08 14:15:05 hewitson Exp $
0012 %
0013 
0014 switch propName
0015   case 'name'
0016     val = h.name;
0017   case 'version'
0018     val = h.version;
0019   case 'plist'
0020     val = h.plist;
0021   case 'inhists'
0022     val = h.inhists;
0023   case 'invars'
0024     val = h.invars;
0025   case 'n'
0026     val = h.n;
0027   case 'pn'
0028     val = h.pn;
0029   case 'created'
0030     val = h.created;
0031   otherwise
0032     error([propName, ' is not a valid history property.']);
0033 end

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003