ProtocolParser Derived Type

type, public :: ProtocolParser


Inherits

type~~protocolparser~~InheritsGraph type~protocolparser ProtocolParser type~integermessagemap IntegerMessageMap type~protocolparser->type~integermessagemap prototypes type~set2~5 set2 type~integermessagemap->type~set2~5 tree type~ivector~4 iVector type~set2~5->type~ivector~4 parents, lefts, rights, heights type~tvector~4 tVector type~set2~5->type~tvector~4 items type~pair~4 pair type~tvector~4->type~pair~4 elements

Inherited by

type~~protocolparser~~InheritedByGraph type~protocolparser ProtocolParser type~directoryservice DirectoryService type~directoryservice->type~protocolparser parser type~mpisocket MpiSocket type~mpisocket->type~protocolparser parser type~maplframework MaplFramework type~maplframework->type~directoryservice directory_service type~servermanager ServerManager type~servermanager->type~directoryservice directory_service type~extdatadriver ExtDataDriver type~extdatadriver->type~servermanager cap_server type~mapl_cap MAPL_Cap type~mapl_cap->type~servermanager cap_server

Constructor

public interface ProtocolParser

  • private function new_ProtocolParser() result(parser)

    Arguments

    None

    Return Value type(ProtocolParser)


Type-Bound Procedures

procedure, public :: decode

  • private subroutine decode(this, buffer, message)

    Arguments

    Type IntentOptional Attributes Name
    class(ProtocolParser), intent(in) :: this
    integer, intent(in) :: buffer(:)
    class(AbstractMessage), intent(out), allocatable :: message

procedure, public :: encode

  • private function encode(this, message) result(buffer)

    Arguments

    Type IntentOptional Attributes Name
    class(ProtocolParser), intent(in) :: this
    class(AbstractMessage), intent(in), target :: message

    Return Value integer, allocatable, (:)

procedure, public :: initialize

  • private subroutine initialize(this)

    Arguments

    Type IntentOptional Attributes Name
    class(ProtocolParser), intent(inout) :: this

procedure, public :: make_message

  • private function make_message(this, type_id) result(message)

    Arguments

    Type IntentOptional Attributes Name
    class(ProtocolParser), intent(in) :: this
    integer, intent(in) :: type_id

    Return Value class(AbstractMessage), allocatable

Source Code

   type :: ProtocolParser
      private
      type (IntegerMessageMap) :: prototypes
      logical :: initialized = .false.
   contains
      procedure :: initialize
      procedure :: make_message
      procedure :: decode
      procedure :: encode
   end type ProtocolParser