void DebugManagerV3::createModuleStrings(const DeviceInfo::ClockMapping& clockMapping) { nModuleStrings = static_cast<uint32_t>(clockMapping.size()); moduleStrings = new char*[nModuleStrings]; for(uint32_t i = 0; i < nModuleStrings; ++i) { size_t size = clockMapping[i].first.size() + 1; moduleStrings[i] = new char[size]; memset(moduleStrings[i], 0, size); strncpy(moduleStrings[i], clockMapping[i].first.c_str(), size - 1); } }
void Registration::CreateClockModuleNames(DeviceInfo::ClockMapping& clockMapping, const EemTimerImpl& eemTimer) const { assert(clockModulesSize == clockMapping.size()); clockMapping[0].first = eemTimer._0_.name_; clockMapping[0].second = eemTimer._0_.value_; clockMapping[1].first = eemTimer._1_.name_; clockMapping[1].second = eemTimer._1_.value_; clockMapping[2].first = eemTimer._2_.name_; clockMapping[2].second = eemTimer._2_.value_; clockMapping[3].first = eemTimer._3_.name_; clockMapping[3].second = eemTimer._3_.value_; clockMapping[4].first = eemTimer._4_.name_; clockMapping[4].second = eemTimer._4_.value_; clockMapping[5].first = eemTimer._5_.name_; clockMapping[5].second = eemTimer._5_.value_; clockMapping[6].first = eemTimer._6_.name_; clockMapping[6].second = eemTimer._6_.value_; clockMapping[7].first = eemTimer._7_.name_; clockMapping[7].second = eemTimer._7_.value_; clockMapping[8].first = eemTimer._8_.name_; clockMapping[8].second = eemTimer._8_.value_; clockMapping[9].first = eemTimer._9_.name_; clockMapping[9].second = eemTimer._9_.value_; clockMapping[10].first = eemTimer._10_.name_; clockMapping[10].second = eemTimer._10_.value_; clockMapping[11].first = eemTimer._11_.name_; clockMapping[11].second = eemTimer._11_.value_; clockMapping[12].first = eemTimer._12_.name_; clockMapping[12].second = eemTimer._12_.value_; clockMapping[13].first = eemTimer._13_.name_; clockMapping[13].second = eemTimer._13_.value_; clockMapping[14].first = eemTimer._14_.name_; clockMapping[14].second = eemTimer._14_.value_; clockMapping[15].first = eemTimer._15_.name_; clockMapping[15].second = eemTimer._15_.value_; clockMapping[16].first = eemTimer._16_.name_; clockMapping[16].second = eemTimer._16_.value_; clockMapping[17].first = eemTimer._17_.name_; clockMapping[17].second = eemTimer._17_.value_; clockMapping[18].first = eemTimer._18_.name_; clockMapping[18].second = eemTimer._18_.value_; clockMapping[19].first = eemTimer._19_.name_; clockMapping[19].second = eemTimer._19_.value_; clockMapping[20].first = eemTimer._20_.name_; clockMapping[20].second = eemTimer._20_.value_; clockMapping[21].first = eemTimer._21_.name_; clockMapping[21].second = eemTimer._21_.value_; clockMapping[22].first = eemTimer._22_.name_; clockMapping[22].second = eemTimer._22_.value_; clockMapping[23].first = eemTimer._23_.name_; clockMapping[23].second = eemTimer._23_.value_; clockMapping[24].first = eemTimer._24_.name_; clockMapping[24].second = eemTimer._24_.value_; clockMapping[25].first = eemTimer._25_.name_; clockMapping[25].second = eemTimer._25_.value_; clockMapping[26].first = eemTimer._26_.name_; clockMapping[26].second = eemTimer._26_.value_; clockMapping[27].first = eemTimer._27_.name_; clockMapping[27].second = eemTimer._27_.value_; clockMapping[28].first = eemTimer._28_.name_; clockMapping[28].second = eemTimer._28_.value_; clockMapping[29].first = eemTimer._29_.name_; clockMapping[29].second = eemTimer._29_.value_; clockMapping[30].first = eemTimer._30_.name_; clockMapping[30].second = eemTimer._30_.value_; clockMapping[31].first = eemTimer._31_.name_; clockMapping[31].second = eemTimer._31_.value_; }