source: MML/trunk/applications/database/mym/dbm/@BasicDB/tableParent.m @ 4

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 
1function 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
6if numel(a_f.ctx.parent)==0
7  error('this collection has no parent')
8end
9
10p = a_f.ctx.parent{a_n};
11if any(strcmp(varargin, 'WRITE_ENABLE'))
12  p.ctx.readonly = false;
13else
14  p.ctx.readonly = true;
15end
Note: See TracBrowser for help on using the repository browser.