| 21 | } |
| 22 | |
| 23 | void Data::setType(DataInfo* _value) |
| 24 | { |
| 25 | mType = _value; |
| 26 | |
| 27 | mProperties.clear(); |
| 28 | |
| 29 | if (mType != nullptr) |
| 30 | { |
| 31 | const DataInfo::VectorProperty& properties = mType->getProperties(); |
| 32 | for (DataInfo::VectorProperty::const_iterator property = properties.begin(); property != properties.end(); |
| 33 | property++) |
| 34 | mProperties[(*property)->getName()].clear(); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | DataInfo* Data::getType() |
| 39 | { |
no test coverage detected