source: MML/trunk/mml/getvbpmfamily.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

File size: 789 bytes
Line 
1function Family = getvbpmfamily
2%GETVBPMFAMILY - Return the default vertical BPM family
3%  Family = getvbpmfamily
4%
5%  The family name is determined by the MemberOf field equal to 'BPMy' or 'VBPM'
6%
7%  See also gethbpmfamily, gethcmfamily, getvcmfamily
8%
9%  Writen by Greg Portmann
10
11persistent WarningFlag
12
13Family = findmemberof('BPMy');
14
15if isempty(Family)
16    Family = findmemberof('VBPM');
17    if isempty(Family)
18        %Family = {'BPMy'};
19        if isempty(WarningFlag)
20            fprintf('\n   No default vertical BPM family has been specified in the MML.\n');
21            fprintf('   To define one, add ''BPMy'' or ''VBPM'' to the .MemberOf field for the default family.\n\n');
22            WarningFlag = 1;
23        end
24
25        Family = {''};
26    end
27end
28
29
30Family = Family{1};
31
Note: See TracBrowser for help on using the repository browser.