Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
change handling of nested <prop> declarations.
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Wed, 9 Oct 2019 12:32:33 +0000 (14:32 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Wed, 9 Oct 2019 12:32:33 +0000 (14:32 +0200)
commit4a8c67f54839fb3e142523870e695d02cf5b1e05
tree8fcf2409675fb2bc4901385550ed49a565283ebf
parent15846f15348dff76e73e1a99dee9f2a706cb85d8
change handling of nested <prop> declarations.

Before: distinctions between zone props and other props with a boolean
and a single set of properties at a time.

Issue: As host can declare props and disks that in turn may declare
props, it enforces a declaration order: disks then props.

Now: stack a new property set when parsing a opening tag to store props
declared at this level. When closing a tag, we assign the set at the
top the stack where it has to and remove it from the stack.
examples/platforms/hosts_with_disks.xml
examples/s4u/io-disk-raw/s4u-io-disk-raw.cpp
examples/s4u/io-disk-raw/s4u-io-disk-raw.tesh
src/surf/sg_platf.cpp
src/surf/xml/platf_private.hpp
src/surf/xml/surfxml_sax_cb.cpp