methods.m

来自「toolbox of BVQX, This is the access betw」· M 代码 · 共 60 行

M
60
字号
function M = methods(S)
% BVQXinifile::methods  - get methods of class

% Version:      v0.7b
% Build:        7090312
% Date:         Sep-03 2007, 12:47 PM CEST
% Author:       Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL / Info:   http://wiki.brainvoyager.com/BVQXtools

% stored in global storage
global bvqxinifile_methods;
if isempty(bvqxinifile_methods)
    bvqxinifile_methods = struct( ...
        'display',      {{}}, ...
        'GetCaller',    {{}}, ...
        'GetChildren',  {{}}, ...
        'GetComplete',  {{}}, ...
        'GetFilename',  {{}}, ...
        'GetFoot',      {{}}, ...
        'GetHead',      {{}}, ...
        'GetID',        {{}}, ...
        'GetIniString', {{}}, ...
        'GetParents',   {{}}, ...
        'GetProtection',{{}}, ...
        'GetSection',   {{'^char$'}}, ...
        'GetSections',  {{}}, ...
        'GetSectionSettings', {{'^char$'}}, ...
        'GetSetting',   {{'^char$', '^char$'}}, ...
        'IsSection',    {{'^char$'}}, ...
        'IsSetting',    {{'^char$', '^char$'}}, ...
        'IsValid',      {{}}, ...
        'NewIniFile',   {{'[^char$'}}, ...
        'Release',      {{}}, ...
        'ReleaseAllFiles', {{}}, ...
        'Reload',       {{}}, ...
        'ReloadAllFiles', {{}}, ...
        'Remove',       {{'^char$', '[^char$'}}, ...
        'ResetClass',   {{}}, ...
        'Save',         {{}}, ...
        'SaveAs',       {{'^char$'}}, ...
        'SetComplete',  {{'^struct$'}}, ...
        'SetFoot',      {{'^char$'}}, ...
        'SetHead',      {{'^char$'}}, ...
        'SetIniString', {{'^char$'}}, ...
        'SetParent',    {{'^(double|bvqxinifile)$'}}, ...
        'SetProtection',{{'^char$'}} ...
    );
end

% bogus check
if ~isBVQXinifile(S)
    error( ...
        'BVQXinifile:BadArgument', ...
        'Bad argument supplied to class method.' ...
    );
end

% return fieldnames
M = fieldnames(bvqxinifile_methods);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?