PSCF v1.1
Public Member Functions | List of all members
pscfpp.command.Command Class Reference

A single command, with a label and zero or more parameters. More...

Inheritance diagram for pscfpp.command.Command:
pscfpp.text.Record

Public Member Functions

def __init__ (self, line)
 Constructor. More...
 
def nParam (self)
 Number of parameter / arguments of the command. More...
 
def param (self, i=0)
 Return parameter number i. More...
 
def setParam (self, value, i=0)
 Set the value of a specific command parameter. More...
 
- Public Member Functions inherited from pscfpp.text.Record
def __init__ (self, line)
 Constructor. More...
 
def __str__ (self)
 String representation - line from which Record was constructed. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def pscfpp.command.Command.__init__ (   self,
  line 
)

Member Function Documentation

◆ nParam()

def pscfpp.command.Command.nParam (   self)

◆ param()

def pscfpp.command.Command.param (   self,
  i = 0 
)

◆ setParam()

def pscfpp.command.Command.setParam (   self,
  value,
  i = 0 
)

Set the value of a specific command parameter.

Parameters
valuenew value for the specified command parameter
iindex of command parameter (0 by default)

Definition at line 184 of file command.py.

References pscfpp.text.Record.fields, Pscf::Pspc::FieldState< D, DArray< double > >.fields(), Pscf::Pspc::FieldState< D, FT >.fields(), and Pscf::Pspg::FieldState< D, FT >.fields().


The documentation for this class was generated from the following file: