Loading...
Searching...
No Matches
label_type

Definition

Represents text as a sequence of ASCII code units. The derived type wraps an allocatable character array.

Examples

type(string) :: s
s = 'foo'

Constructors

Initializes a new instance of the label_type class

label_type(character(*), integer, integer, (optional) integer)

type(string) function string(character(*) text, integer first, integer length, (optional) integer level) 
Parameters
[in]textText displayed next to the label
[in]firstPosition of the label
[in]lengthLength of the label
[in]level(optional) Level of the label

Examples

type(label_type) :: label
label = label_type('Syntax error', 5, 7)
Returns
The constructed label_type object.

label_type(integer, character(*), integer, integer, (optional) integer, (optional) logical)

type(string) function label_type(integer line, character(*) text, integer first, integer length, (optional) integer level, (optional) logical primary) 
Parameters
[in]lineline number for the label
[in]textText displayed next to the label
[in]firstPosition of the label
[in]lengthLength of the label
[in]level(optional) Level of the label
[in]primary.true. if the label is the primary one

Examples

type(label_type) :: label
label = label_type(1, 'Syntax error', 5, 7, level_error, .true.)
Returns
The constructed label_type object.

Remarks

Definition at line 246 of file logging.f90.


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

Variables

integer, allocatable level
 Level of message.
logical primary
 Primary message.
integer line
 Line number of message.
integer first
 First character of message.
integer last
 Last character of message.
character(:), allocatable text
 Message text.
character(:), allocatable source
 Identifier of context.