Home > classes > @cdata > get.m

get

PURPOSE ^

GET get csdata properties.

SYNOPSIS ^

function val = get(c, propName)

DESCRIPTION ^

 GET get csdata properties.

     name = get(c, 'name');
  created = get(c, 'created');
  version = get(c, 'version');
     vals = get(c, 'vals');
     tags = get(c, 'tags');
 
 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(c, propName)
0002 
0003 % GET get csdata properties.
0004 %
0005 %     name = get(c, 'name');
0006 %  created = get(c, 'created');
0007 %  version = get(c, 'version');
0008 %     vals = get(c, 'vals');
0009 %     tags = get(c, 'tags');
0010 %
0011 % M Hewitson 30-01-07
0012 %
0013 % $Id: get.html,v 1.1 2007/06/08 14:15:05 hewitson Exp $
0014 %
0015 
0016 switch propName
0017   case 'name'
0018     val = c.name;
0019   case 'created'
0020     val = c.created;
0021   case 'version'
0022     val = c.version;
0023   case 'vals'
0024     val = c.vals;
0025   case 'tags'
0026     val = c.tags;
0027   case 'xunits'
0028     val = c.xunits;
0029   case 'yunits'
0030     val = c.yunits;
0031   otherwise
0032     error([propName, ' is not a valid cdata property.']);
0033 end

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