source: MML/trunk/machine/SOLEIL/StorageRing/insertions/idCheckFFWDTableStructure.m @ 17

Last change on this file since 17 was 17, checked in by zhangj, 10 years ago

To have a stable version on the server.

  • Property svn:executable set to *
File size: 715 bytes
Line 
1function CheckResult=idCheckFFWDTableStructure(FFWDTableStructure)
2%% Written by F. Briquez    26/04/2011
3% Checks if input FFWD table structure contains all the appropriate fields
4% contained in CellOfStructureFields
5
6%%
7CheckResult=-1;
8
9CellOfStructureFields=cell(7, 1);
10CellOfStructureFields{1}='vPhases';
11CellOfStructureFields{2}='vGaps';
12CellOfStructureFields{3}='Table';
13CellOfStructureFields{4}='TableWithArgs';
14CellOfStructureFields{5}='idName';
15CellOfStructureFields{6}='idMode';
16CellOfStructureFields{7}='CorrectorName';
17
18for i=1:size(CellOfStructureFields, 1)
19    CurrentField=CellOfStructureFields{i};
20    if (isfield(FFWDTableStructure, CurrentField)==0)
21        return
22    end
23end
24
25CheckResult=1;
26end
Note: See TracBrowser for help on using the repository browser.