Rev 1311 | Rev 1323 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1311 | Rev 1314 | ||
|---|---|---|---|
| Line 23... | Line 23... | ||
| 23 | 23 | ||
| 24 | xml::Node::nodeList variableNodes = messageNode.select("variable"); |
24 | xml::Node::nodeList variableNodes = messageNode.select("variable"); |
| 25 | 25 | ||
| 26 | for (unsigned int n = 0; n < variableNodes.size(); n++) |
26 | for (unsigned int n = 0; n < variableNodes.size(); n++) |
| 27 | { |
27 | { |
| 28 | Variable variable(variableNodes[n]["name"], variableNodes[n]["datatype"], |
28 | Variable variable(variableNodes[n]["name"], variableNodes[n]["datatype"], convert::string2bool(variableNodes[n]["required"]), variableNodes[n]["unit"]); |
| 29 | this->myVariables[variableNodes[n]["name"]] = variable; |
29 | this->myVariables[variableNodes[n]["name"]] = variable; |
| 30 | } |
30 | } |
| 31 | 31 | ||
| 32 | if (moduleNode.selectFirst("in").select("message", xml::Node::attributePair("name", type)).size() > 0) |
32 | if (moduleNode.selectFirst("in").select("message", xml::Node::attributePair("name", type)).size() > 0) |
| 33 | { |
33 | { |