Rev 1310 | Go to most recent revision | Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1309 | runge | 1 | /* |
| 2 | * Variable.cpp |
||
| 3 | * |
||
| 4 | * Created on: Jul 21, 2009 |
||
| 5 | * Author: Mattias Runge |
||
| 6 | */ |
||
| 7 | |||
| 8 | #include "Variable.h" |
||
| 9 | |||
| 10 | namespace atom { |
||
| 11 | namespace message { |
||
| 12 | |||
| 13 | Variable::Variable(string datatype, bool required, string unit) |
||
| 14 | { |
||
| 15 | this->myRequired = required; |
||
| 16 | this->myUnit = unit; |
||
| 17 | |||
| 18 | // TODO convert datatype-string into datatype and length |
||
| 19 | // this->myLength; |
||
| 20 | // this->myDatatype = Datatype_create(type); |
||
| 21 | } |
||
| 22 | |||
| 23 | Variable::Variable() |
||
| 24 | { |
||
| 25 | } |
||
| 26 | |||
| 27 | Variable::~Variable() |
||
| 28 | { |
||
| 29 | // TODO Auto-generated destructor stub |
||
| 30 | } |
||
| 31 | |||
| 32 | void Variable::readBits(BitBuffer & buffer) |
||
| 33 | { |
||
| 34 | (*this->myDatatype).readBits(buffer, this->myLength); |
||
| 35 | } |
||
| 36 | |||
| 37 | } |
||
| 38 | } |