Home > functions > gui > bm_editor > history > history_new.m

history_new

PURPOSE ^

create history object

SYNOPSIS ^

function [obj] = history_new()

DESCRIPTION ^

 create history object
 [USAGE]
    [obj] = history_new;
 [IN]
    none
 [OUT]
    obj : history object

 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 [obj] = history_new()
0002 % create history object
0003 % [USAGE]
0004 %    [obj] = history_new;
0005 % [IN]
0006 %    none
0007 % [OUT]
0008 %    obj : history object
0009 %
0010 % Copyright (C) 2011, ATR All Rights Reserved.
0011 % License : New BSD License(see VBMEG_LICENSE.txt)
0012 
0013 obj = struct;
0014 
0015 % set class type
0016 obj.class_type = 'history';
0017 
0018 %
0019 % --- Member initialize
0020 %
0021 % item_list{k} = item;
0022 % <<struct>> item
0023 %     item.description;
0024 %     item.parm
0025 
0026 obj.item_list = cell(0);
0027 
0028 %
0029 % --- After check
0030 %
0031 if nargout ~= 1
0032     error('function caller should receive obj.');
0033 end

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