Last change
on this file since 4 was
4,
checked in by zhangj, 10 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
478 bytes
|
Line | |
---|
1 | function Flag = isattribute(attributename) |
---|
2 | % ISTANGO - Checks whether input looks like a attribute name |
---|
3 | % flag = isattribute(attributename) |
---|
4 | % |
---|
5 | % INPUTS |
---|
6 | % 1. attributename - Attribute name |
---|
7 | |
---|
8 | % OUTPUTS |
---|
9 | % 1. Flag - 1 if true |
---|
10 | % 2 if wrong |
---|
11 | % |
---|
12 | % NOTES |
---|
13 | % No check is done with the static tango database |
---|
14 | % Just look if of the form: ENSEMBLE/DOMAINE/EQUIPEMENT/ATTRIBUTE |
---|
15 | % |
---|
16 | % See Also isfamily |
---|
17 | |
---|
18 | Flag = 1; |
---|
19 | |
---|
20 | if length(regexp(attributename,'/')) ~= 3 |
---|
21 | Flag = 0; |
---|
22 | end |
---|
23 | |
---|
24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.