Home > classes > @cdata > get.m

get

PURPOSE ^

GET get csdata properties.

SYNOPSIS ^

function val = get(c, propName)

DESCRIPTION ^

 GET get csdata properties.

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

 DESCRIPTION: GET get csdata properties.

 CALL:    name    = get(c, 'name');
          created = get(c, 'created');
          version = get(c, 'version');
          vals    = get(c, 'vals');
          tags    = get(c, 'tags');
          xunit   = get(c, 'xunits');
          yunit   = get(c, 'yunits');

 VERSION: $Id: get.m,v 1.3 2007/06/18 11:00:23 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(c, propName)
0002 % GET get csdata properties.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: GET get csdata properties.
0007 %
0008 % CALL:    name    = get(c, 'name');
0009 %          created = get(c, 'created');
0010 %          version = get(c, 'version');
0011 %          vals    = get(c, 'vals');
0012 %          tags    = get(c, 'tags');
0013 %          xunit   = get(c, 'xunits');
0014 %          yunit   = get(c, 'yunits');
0015 %
0016 % VERSION: $Id: get.m,v 1.3 2007/06/18 11:00:23 ingo Exp $
0017 %
0018 % HISTORY: 30-01-07 M Hewitson
0019 %             Creation
0020 %
0021 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0022 
0023 switch propName
0024   case 'name'
0025     val = c.name;
0026   case 'created'
0027     val = c.created;
0028   case 'version'
0029     val = c.version;
0030   case 'vals'
0031     val = c.vals;
0032   case 'tags'
0033     val = c.tags;
0034   case 'xunits'
0035     val = c.xunits;
0036   case 'yunits'
0037     val = c.yunits;
0038   otherwise
0039     error([propName, ' is not a valid cdata property.']);
0040 end

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