tour_printer
Source: src/third_party/FoXy/docs/examples/snippets/tour.f90
Dependencies
Contents
Derived Types
printer
Inheritance
Extends: xml_handler
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
level | integer(kind=I4P) | ||
pos | integer(kind=I8P) |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
cdata | pass(self) | |
comment | pass(self) | |
processing_instruction | pass(self) | |
doctype | pass(self) | |
problem | pass(self) | |
parse | pass(self) | |
stop_parsing | pass(self) | |
start_element | ||
characters | ||
end_element |
printer%cdata
fortran
subroutine cdata(self, text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(xml_handler) | inout | ||
text | character(len=*) | in |
Call graph
printer%comment
fortran
subroutine comment(self, text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(xml_handler) | inout | ||
text | character(len=*) | in |
Call graph
printer%processing_instruction
fortran
subroutine processing_instruction(self, target, data)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(xml_handler) | inout | ||
target | character(len=*) | in | ||
data | character(len=*) | in |
Call graph
printer%doctype
fortran
subroutine doctype(self, text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(xml_handler) | inout | ||
text | character(len=*) | in |
Call graph
printer%problem
fortran
subroutine problem(self, message)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(xml_handler) | inout | ||
message | character(len=*) | in |
Call graph
printer%parse
fortran
subroutine parse(self, string, filename, chunk_size, sanitize_attributes_value, iostat, iomsg)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(xml_handler) | inout | ||
string | character(len=*) | in | optional | |
filename | character(len=*) | in | optional | |
chunk_size | integer(kind=I8P) | in | optional | |
sanitize_attributes_value | logical | in | optional | |
iostat | integer(kind=I4P) | out | optional | |
iomsg | character(len=*) | inout | optional |
Call graph
printer%stop_parsing
fortran
subroutine stop_parsing(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(xml_handler) | inout |
Call graph
Subroutines
on_start
fortran
subroutine on_start(self, name, attributes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(printer) | inout | ||
name | character(len=*) | in | ||
attributes | type(xml_attribute) | in |
on_text
fortran
subroutine on_text(self, text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(printer) | inout | ||
text | character(len=*) | in |
on_end
fortran
subroutine on_end(self, name)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(printer) | inout | ||
name | character(len=*) | in |