Rev 1322 | Rev 1326 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1322 | Rev 1323 | ||
|---|---|---|---|
| Line 8... | Line 8... | ||
| 8 | #include "Variable.h" |
8 | #include "Variable.h" |
| 9 | 9 | ||
| 10 | namespace atom { |
10 | namespace atom { |
| 11 | namespace message { |
11 | namespace message { |
| 12 | 12 | ||
| 13 | Variable::Variable( |
13 | Variable::Variable(xml::Node xmlNode) |
| 14 | { |
14 | { |
| 15 | this->myName = name; |
15 | this->myName = xmlNode["name"]; |
| 16 | this->myRequired = required; |
16 | this->myRequired = convert::string2bool(xmlNode["required"]); |
| 17 | this->myUnit = unit; |
17 | this->myUnit = xmlNode["unit"]; |
| 18 | 18 | ||
| 19 | this->myDatatype = Datatype::create(datatype); |
19 | this->myDatatype = Datatype::create(xmlNode["datatype"]); |
| 20 | } |
20 | } |
| 21 | 21 | ||
| 22 | Variable::Variable() |
22 | Variable::Variable() |
| 23 | { |
23 | { |
| 24 | } |
24 | } |