Stellarator-Tools
surface_commandline_parser::surface_commandline_parser_class Interface Reference

Base class containing a parsed surface_commandline. More...

Public Member Functions

PROCEDURE, pass get_string => surface_commandline_parser_get_string
 
PROCEDURE, pass get_integer => surface_commandline_parser_get_integer
 
PROCEDURE, pass get_real => surface_commandline_parser_get_real
 
GENERIC get => get_string, get_integer, get_real
 
PROCEDURE, pass is_flag_set => surface_commandline_parser_is_flag_set
 
PROCEDURE, pass flag_requires_value => surface_commandline_parser_flag_requires_value
 
FINAL surface_commandline_parser_destruct
 
class(surface_commandline_parser_class) function, pointer surface_commandline_parser_construct (parallel)
 Construct a surface_commandline_parser_class object. More...
 

Public Attributes

character(len=max_length) command
 Command name of current process.
 
character(len=max_arg_length), dimension(:), pointer arg => null()
 Array of arguments. An argument is the form of -flag.
 
character(len=path_length), dimension(:), pointer value => null()
 Array of value corresponding to the flag. A value is everything after the '=' character. The value maybe blank indicating there was no value provided.
 

Detailed Description

Base class containing a parsed surface_commandline.

Interface for the bmw_commandline_parser constructor.

Member Function/Subroutine Documentation

◆ surface_commandline_parser_construct()

class (surface_commandline_parser_class) function, pointer surface_commandline_parser::surface_commandline_parser_class::surface_commandline_parser_construct ( class (bmw_parallel_context_class), intent(in)  parallel)

Construct a surface_commandline_parser_class object.

Allocates memory and initializes a surface_commandline_parser_class object. The command line is parsed assuming the the flags take the form of -flag=value. If the '=' is missing, it is assumed there is no value. If -h is found, the help text is printed out and the program terminated.

Parameters
[in]parallelbmw_parallel_context_class object instance.
Returns
A pointer to a constructed surface_commandline_parser_class object.

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