sensorfw
include/idutils.h
Go to the documentation of this file.
00001 
00026 #ifndef ID_UTILS_H
00027 #define ID_UTILS_H
00028 
00029 #include <QString>
00030 
00037 inline QString getCleanId(const QString& id)
00038 {
00039     const char SENSOR_TYPE_SEPARATOR = ';';
00040     int pos = id.indexOf(SENSOR_TYPE_SEPARATOR);
00041     return pos != -1 ? id.left(pos) : id;
00042 }
00043 
00044 #endif // ID_UTILS_H