PSCF v1.3
|
A single command, with a label and zero or more parameters. More...
Public Member Functions | |
__init__ (self, line) | |
Constructor. | |
nParam (self) | |
Number of parameter / arguments of the command. | |
param (self, i=0) | |
Return parameter number i. | |
setParam (self, value, i=0) | |
Set the value of a specific command parameter. | |
Public Member Functions inherited from pscfpp.text.Record | |
__init__ (self, line) | |
Constructor. | |
__str__ (self) | |
String representation - line from which Record was constructed. |
A single command, with a label and zero or more parameters.
The first string (or field) in a command is the label, and subsequent space separated strings are interpreted as command parameters. All fields are stored verbatim as strings.
Definition at line 153 of file command.py.
pscfpp.command.Command.__init__ | ( | self, | |
line ) |
Constructor.
line | string containing the command line |
Definition at line 160 of file command.py.
pscfpp.command.Command.nParam | ( | self | ) |
Number of parameter / arguments of the command.
Definition at line 167 of file command.py.
References fields.
pscfpp.command.Command.param | ( | self, | |
i = 0 ) |
Return parameter number i.
i | index of command parameter / argument |
Definition at line 175 of file command.py.
References fields.
pscfpp.command.Command.setParam | ( | self, | |
value, | |||
i = 0 ) |
Set the value of a specific command parameter.
value | new value for the specified command parameter |
i | index of command parameter (0 by default) |
Definition at line 184 of file command.py.
References fields.