Home > classes > @provenance > char.m

char

PURPOSE ^

CHAR convert a provenance object into a string.

SYNOPSIS ^

function pstr = char(p)

DESCRIPTION ^

 CHAR convert a provenance object into a string.

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

 DESCRIPTION: CHAR convert a provenance object into a string.

 CALL:        string = char(prov)

 VERSION:     $Id: char.m,v 1.4 2007/07/30 12:18:28 ingo Exp $

 HISTORY:     04-02-2007 M Hewitson
                 Creation

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function pstr = char(p)
0002 % CHAR convert a provenance object into a string.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: CHAR convert a provenance object into a string.
0007 %
0008 % CALL:        string = char(prov)
0009 %
0010 % VERSION:     $Id: char.m,v 1.4 2007/07/30 12:18:28 ingo Exp $
0011 %
0012 % HISTORY:     04-02-2007 M Hewitson
0013 %                 Creation
0014 %
0015 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0016 
0017 pstr = sprintf('created by %s@%s[%s] on %s/%s/%s at %s', ...
0018                 get(p, 'creator'),...
0019                 get(p, 'hostname'),...
0020                 get(p, 'ip'),...
0021                 get(p, 'os'),...
0022                 get(p, 'matlab_version'),...
0023                 get(p, 'ltpda_version'),...
0024                 char(get(p, 'created')));
0025 
0026 
0027 % END

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