25 file.open(absPathToDMapFile.c_str());
31 while(std::getline(file, line)) {
33 line.erase(line.begin(), std::find_if(line.begin(), line.end(), [](
int c) { return !isspace(c); }));
48 if(dmap->getSize() == 0) {
55 const std::string& file_name,
const std::string& line, uint32_t line_nr,
const DeviceInfoMapPointer& dmap) {
58 std::string key, value;
61 if(s && (key ==
"@LOAD_LIB")) {
70 const std::string& file_name,
const std::string& line, uint32_t line_nr,
const DeviceInfoMapPointer& dmap) {
71 std::istringstream inStream;
83 dmap->insert(deviceInfo);
86 std::istringstream inStream2;
95 dmap->insert(deviceInfo);
114 std::stringstream errorMessage;
115 errorMessage <<
"Error in dmap file: \"" << file_name <<
"\" in line (" << line_nr <<
") \"" << line <<
"\"";