Changes between Initial Version and Version 1 of TorqueUsage/DataTypes/Batch_status


Ignore:
Timestamp:
09/08/06 10:01:21 (18 years ago)
Author:
bas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TorqueUsage/DataTypes/Batch_status

    v1 v1  
     1[[ShowPath]]
     2
     3= Batch_status data type =
     4
     5Batch_status is a structure which is defined in ''pbs_ifl.h'' as:
     6{{{
     7#!C
     8struct batch_status {
     9        struct batch_status *next;
     10        char                *name;
     11        struct attrl        *attribs;
     12        char                *text;
     13};
     14}}}
     15
     16== Python Usage ==
     17
     18This type is mostly use as return type. Here is an example how to use it:
     19{{{
     20#!python
     21
     22nodes = pbs.pbs_statnode(c, "", "NULL", "NULL")
     23for node in nodes:
     24   print node.name
     25   for attrib in node.attribs:
     26     print '%s = %s' %(attrib.name, attrib.value)
     27}}}
     28
     29
     30''Note:'' That the next pointer definition is not used in the Python code. The module will automatically convert a C linked list to a Python list a vice versa