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 | |
---|
1 | function 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 | %% |
---|
7 | CheckResult=-1; |
---|
8 | |
---|
9 | CellOfStructureFields=cell(7, 1); |
---|
10 | CellOfStructureFields{1}='vPhases'; |
---|
11 | CellOfStructureFields{2}='vGaps'; |
---|
12 | CellOfStructureFields{3}='Table'; |
---|
13 | CellOfStructureFields{4}='TableWithArgs'; |
---|
14 | CellOfStructureFields{5}='idName'; |
---|
15 | CellOfStructureFields{6}='idMode'; |
---|
16 | CellOfStructureFields{7}='CorrectorName'; |
---|
17 | |
---|
18 | for i=1:size(CellOfStructureFields, 1) |
---|
19 | CurrentField=CellOfStructureFields{i}; |
---|
20 | if (isfield(FFWDTableStructure, CurrentField)==0) |
---|
21 | return |
---|
22 | end |
---|
23 | end |
---|
24 | |
---|
25 | CheckResult=1; |
---|
26 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.