Hets - the Heterogeneous Tool Set

Copyrightuni-bremen and DFKI
LicenseGPLv2 or higher, see LICENSE.txt
Maintainerr.pascanu@jacobs-university.de
Stabilityprovisional
Portabilityportable
Safe HaskellNone

PGIP.XMLstate

Description

PGIP.XMLstate contains the description of the XMLstate and a function that produces such a state

Synopsis

Documentation

addPGIPMarkup :: String -> Element

adds xml structure to unstructured code

addPGIPAnswer :: String -> String -> CmdlPgipState -> CmdlPgipState

It inserts a given string into the XML packet as normal output

addPGIPError :: String -> CmdlPgipState -> CmdlPgipState

It inserts a given string into the XML packet as error output

data CmdlPgipState

State that keeps track of the comunication between Hets and the Broker

genCMDLPgipState :: Bool -> Handle -> Handle -> Int -> IO CmdlPgipState

Generates an empty CmdlPgipState

genPgipID :: IO String

Generates the id of the session between Hets and the Broker

addToMsg :: String -> CmdlPgipState -> CmdlPgipState

Concatenates the input string to the message stored in the state

resetPGIPData :: CmdlPgipState -> CmdlPgipState

Resets the content of the message stored in the state

parseXMLTree :: [Content] -> [CmdlXMLcommands] -> [CmdlXMLcommands]

parses the xml message creating a list of commands that it needs to execute

parseMsg :: CmdlPgipState -> String -> [CmdlXMLcommands]

Given a packet (a normal string or a xml formated string), the function converts it into a list of commands