Bases: object
Creates a exponent line. This type of line is characterised by a keyword, a value express as an exponent (see _toexponent()) and a termination string. The keyword and the total length of the line is checked not to exceed their respective maximum size.
Parameters: |
|
---|
Creates an input line from the specified keyword, text and comment. The white space between the items is automatically adjusted to fit the line size. The keyword and the total length of the line is checked not to exceed their respective maximum size.
Parameters: |
|
---|
Finds all the lines starting with the expected keyword.
Parameters: |
|
---|---|
Returns: | List of all the lines |
Return type: | list |
Finds the first line starting with this keyword. If no occurrence is not found, the exception KeywordNotFound is raised.
Parameters: |
|
---|---|
Returns: | line |
Return type: | str |
Returns the keyword of the specified line.
Parameters: | line (str) – a line from the input file |
---|---|
Return type: | str |
Extracts the keyword, the values and the termination of an input line. The values are returned as a list.
Parameters: | line – input line |
---|---|
Returns: | keyword, values, comment |
Returns the values inside the specified line.
Parameters: | line (str) – a line from the input file |
---|---|
Return type: | list |