www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@calibrationdata/@calibrationinterface/pSetAutoCommit.m

    function value = pSetAutoCommit(obj, value)
%PSETAUTOCOMMIT  Private set method.

%  Auto commit may be setable depending on whether a concrete subclass
%  supports the idea of delayed commit.

%  Copyright 2004-2007 The MathWorks, Inc.


if value == true
    % always OK
else
    % not OK by default (need to overload in subclasses that support delayed commit)
    warning(message('mbc:calibrationdata:calibrationinterface:InvalidArgument3', class( obj )))
    value = true;
end