Difference between revisions of "IXTgroups"

From LIBISIS
Jump to navigation Jump to search
m
 
m
 
Line 1: Line 1:
 
The IXMgroups module and IXTgroups type are used for storing information about logical groupsing of detectors.
 
The IXMgroups module and IXTgroups type are used for storing information about logical groupsing of detectors.
  
IXFname_groups Retun the name of group given its ID
+
==Structure==
  
IXFid_groups Return ID of group given its name
 
  
IXFparent_groups Return parent name of group given either its name or id
+
The elements of the object are as follows:
  
IXFparent_id_groups Return parent ID of group given either its name or id
+
{| {{Tablestyle}}
 +
|-
 +
! {{Headcellstyle}} | Field
 +
!{{Headcellstyle}} | Type
 +
! {{Headcellstyle}} | Description
 +
|-
 +
|'''base'''
 +
| [[IXTbase]]
 +
| interal use
 +
|-
 +
|'''list(100)'''
 +
| [[IXTgroup]]
 +
| array of IXTgroup objects
 +
|-
 +
|'''n'''
 +
| int
 +
| size of group list
 +
|}
  
IXFadd_groups Add a new group, specifying its name and parent
+
[[IXFname_groups]] Retun the name of group given its ID
  
IXFremove_groups Remove a group, specifying either its name or id
+
[[IXFid_groups]] Return ID of group given its name
  
IXFis_member_groups Test for group membership given either names or ids
+
[[IXFparent_groups]] Return parent name of group given either its name or id
  
IXFparent_list_groups Return all parent groups IDs for a given group i.e.
+
[[IXFparent_id_groups]] Return parent ID of group given either its name or id
all other groups that we also belong to
+
 
IXFmember_list_groups Return all children groups for a given group i.e.
+
[[IXFadd_groups]] Add a new group, specifying its name and parent
 +
 
 +
[[IXFremove_groups]] Remove a group, specifying either its name or id
 +
 
 +
[[IXFis_member_groups]] Test for group membership given either names or ids
 +
 
 +
[[IXFparent_list_groups]] Return all parent groups IDs for a given group i.e. all other groups that we also belong to
 +
[[IXFmember_list_groups]] Return all children groups for a given group i.e.
 
all groups that are members of us
 
all groups that are members of us
IXFprint_groups Print out a group ID list returned from IXFparent_list_groups or IXFmember_list_groups
+
[[IXFprint_groups]] Print out a group ID list returned from [[IXFparent_list_groups]] or IXFmember_list_groups
  
 
example:
 
example:

Latest revision as of 08:03, 5 August 2008

The IXMgroups module and IXTgroups type are used for storing information about logical groupsing of detectors.

Structure

The elements of the object are as follows:

Field Type Description
base IXTbase interal use
list(100) IXTgroup array of IXTgroup objects
n int size of group list

IXFname_groups Retun the name of group given its ID

IXFid_groups Return ID of group given its name

IXFparent_groups Return parent name of group given either its name or id

IXFparent_id_groups Return parent ID of group given either its name or id

IXFadd_groups Add a new group, specifying its name and parent

IXFremove_groups Remove a group, specifying either its name or id

IXFis_member_groups Test for group membership given either names or ids

IXFparent_list_groups Return all parent groups IDs for a given group i.e. all other groups that we also belong to IXFmember_list_groups Return all children groups for a given group i.e. all groups that are members of us IXFprint_groups Print out a group ID list returned from IXFparent_list_groups or IXFmember_list_groups

example: type(ITXgroups) :: groups call IXFadd_groups(groups, 'tube1', 'bank1', status) call IXFis_member_groups(groups, 'tube1', 'bank1', status) call IXFremove_groups(groups, 'bank1')