15 character(len=*),
intent(in) :: text
17 allocate (newcharcont)
23 class(*),
pointer,
intent(inout) :: obj
27 if (.not.
associated(obj))
return
38 type(
listtype),
intent(inout) :: list
39 character(len=*),
intent(in) :: string
41 class(*),
pointer :: obj
44 newcharactercontainer => null()
46 if (
associated(newcharactercontainer))
then
47 obj => newcharactercontainer
55 type(
listtype),
intent(inout) :: list
56 integer(I4B),
intent(in) :: indx
57 character(len=:),
allocatable :: string
59 class(*),
pointer :: obj
62 obj => list%GetItem(indx)
64 if (
associated(charcont))
then
65 allocate (
character(len=charcont%strlen()) :: string)
This module defines variable data types.
subroutine constructcharactercontainer(newCharCont, text)
type(characterstringtype) function, pointer castascharacterstringtype(obj)
character(len=:) function, allocatable, public getstringfromlist(list, indx)
subroutine, public addstringtolist(list, string)
This class is used to store a single deferred-length character string. It was designed to work in an ...
A generic heterogeneous doubly-linked list.