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