Home > classes > @ao > get.m

get

PURPOSE ^

GET get ao properties.

SYNOPSIS ^

function val = get(ao, propName)

DESCRIPTION ^

 GET get ao properties.

     name = get(ao, 'name');
     data = get(ao, 'data');
     hist = get(ao, 'history');
 
 M Hewitson 30-01-07
 
 $Id: get.html,v 1.1 2007/06/08 14:15:02 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val = get(ao, propName)
0002 
0003 % GET get ao properties.
0004 %
0005 %     name = get(ao, 'name');
0006 %     data = get(ao, 'data');
0007 %     hist = get(ao, 'history');
0008 %
0009 % M Hewitson 30-01-07
0010 %
0011 % $Id: get.html,v 1.1 2007/06/08 14:15:02 hewitson Exp $
0012 %
0013 
0014 switch propName
0015   case 'tag'
0016     val = ao.tag;
0017   case 'name'
0018     val = ao.name;
0019   case 'data'
0020     val = ao.data;
0021   case 'hist'
0022     val = ao.hist;
0023   case 'provenance'
0024     val = ao.provenance;
0025   case 'comment'
0026     val = ao.comment;
0027   case 'mfile'
0028     val = ao.mfile;
0029   case 'mfilename'
0030     val = ao.mfilename;
0031   case 'mdlfile'
0032     val = ao.mdlfile;
0033   case 'mdlfilename'
0034     val = ao.mdlfilename;
0035   
0036   %% Pass through some requests to data object
0037   case 'fs'
0038     val = get(ao.data, 'fs');
0039     
0040   otherwise
0041     error([propName, ' is not a valid ao property.']);
0042 end

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