Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

code parameters allow to store varaibles and parameters outside of actor code in elegant way.

The IMAS environment has specially dedicated Fortran library - xmllib XMLLIB to handle it.

XMLLIB library basics

The main idea of the library

Image Modified

Short description of XMLLIB API - main points

Code Block
xml2eg_parse_memory(parameters , xml2eg_document)

This function allows you to read to memory the entire xml file containing the list of parameters.
Parse the "codeparam_string". This means that the data is put into a xml2eg_document.

Code Block
xml2eg_get(xml2eg_document, path, output_value)

The function allows reading the parameter that is in the path location inside xml file.
Data is extracted from the xml2eg_document file is the output_value variable.

Code Block
xml2eg_free_doc(xml2eg_document)

Cleaning and freeing allocated memory of xml2eg_document object.


Tip

A more detailed description of the XMLLIB library can be found here