Rev 1311 | Rev 1322 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1311 | Rev 1314 | ||
|---|---|---|---|
| Line 16... | Line 16... | ||
| 16 | this->myRequired = required; |
16 | this->myRequired = required; |
| 17 | this->myUnit = unit; |
17 | this->myUnit = unit; |
| 18 | 18 | ||
| 19 | xml::Node datatypeNode = Protocol::getInstance()->getRootNode().selectFirst("datatypes").selectFirst("datatype", xml::Node::attributePair("name", datatype)); |
19 | xml::Node datatypeNode = Protocol::getInstance()->getRootNode().selectFirst("datatypes").selectFirst("datatype", xml::Node::attributePair("name", datatype)); |
| 20 | 20 | ||
| 21 | this->myLength = |
21 | this->myLength = convert::string2uint(datatypeNode["length"]); |
| 22 | this->myDatatype = boost::make_shared<Datatype>(Datatype::getTypeFromString(datatypeNode["type"])); |
22 | this->myDatatype = boost::make_shared<Datatype>(Datatype::getTypeFromString(datatypeNode["type"])); |
| 23 | } |
23 | } |
| 24 | 24 | ||
| 25 | Variable::Variable() |
25 | Variable::Variable() |
| 26 | { |
26 | { |