refactoring parse header and fixing CI

parent 7bb3233c
Pipeline #22079 passed with stages
in 23 minutes and 56 seconds
This diff is collapsed.
...@@ -44,6 +44,8 @@ public: ...@@ -44,6 +44,8 @@ public:
bool Parse(std::string iniFile); bool Parse(std::string iniFile);
private: private:
bool ParseHeader(TiXmlNode* xHeader);
bool ParseGCFMModel(TiXmlElement* xGCFM, TiXmlElement* xMain); bool ParseGCFMModel(TiXmlElement* xGCFM, TiXmlElement* xMain);
bool ParseKrauszModel(TiXmlElement* xKrausz, TiXmlElement* xMain); bool ParseKrauszModel(TiXmlElement* xKrausz, TiXmlElement* xMain);
......
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<JuPedSim project="JPS-Project" version="0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xsd.jupedsim.org/0.6/jps_ini_core.xsd"> <JuPedSim project="JPS-Project" version="0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xsd.jupedsim.org/0.6/jps_ini_core.xsd">
<header>
<!-- seed used for initialising random generator --> <!-- seed used for initialising random generator -->
<seed>12542</seed> <seed>12542</seed>
<!-- geometry file --> <!-- geometry file -->
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<!-- where to store the logs --> <!-- where to store the logs -->
<logfile>log.txt</logfile> <logfile>log.txt</logfile>
</header>
<!-- traffic information: e.g closed doors or smoked rooms --> <!-- traffic information: e.g closed doors or smoked rooms -->
<traffic_constraints> <traffic_constraints>
<!-- doors states are: close or open --> <!-- doors states are: close or open -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment