- const string& type_str = (*iter)->property("type")->value();
- const string& count_str = (*iter)->property("count")->value();
- set(DataType(type_str), atol(count_str.c_str()));
+ DataType type(DataType::NIL);
+ uint32_t count;
+ (*iter)->get_property("type", type);
+ (*iter)->get_property("count", count);
+ set(type, count);