Home > functions > gui > project_mgr_dir > static_project_filename.m

static_project_filename

PURPOSE ^

project filename is preserved in this function.

SYNOPSIS ^

function project_filename = static_project_filename(command, filename)

DESCRIPTION ^

 project filename is preserved in this function.
 User can get/set by set_project_filename/get_projectfilename.

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function project_filename = static_project_filename(command, filename)
0002 % project filename is preserved in this function.
0003 % User can get/set by set_project_filename/get_projectfilename.
0004 %
0005 % Copyright (C) 2011, ATR All Rights Reserved.
0006 % License : New BSD License(see VBMEG_LICENSE.txt)
0007 
0008 mlock; % not to clear by clear command
0009 persistent preserved_filename;
0010 
0011 switch(command)
0012     case 'get'
0013          project_filename = preserved_filename;
0014     case 'set'
0015          preserved_filename = filename;
0016     otherwise
0017          error('static_project_filename(''get'' or ''set'', project_filename');
0018 end

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005