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:
400 bytes
|
Line | |
---|
1 | function p = tableParent(a_f, a_n, varargin) |
---|
2 | % COLLPARENT - return an BasicDB object connected to the parent |
---|
3 | % p = tableParent(f, n) return the BasicDB objects connected to |
---|
4 | % the parent n of f. |
---|
5 | |
---|
6 | if numel(a_f.ctx.parent)==0 |
---|
7 | error('this collection has no parent') |
---|
8 | end |
---|
9 | |
---|
10 | p = a_f.ctx.parent{a_n}; |
---|
11 | if any(strcmp(varargin, 'WRITE_ENABLE')) |
---|
12 | p.ctx.readonly = false; |
---|
13 | else |
---|
14 | p.ctx.readonly = true; |
---|
15 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.