sensorfw
idutils.h
Go to the documentation of this file.
1
26
#ifndef ID_UTILS_H
27
#define ID_UTILS_H
28
29
#include <QString>
30
37
inline
QString
getCleanId
(
const
QString&
id
)
38
{
39
const
char
SENSOR_TYPE_SEPARATOR =
';'
;
40
int
pos =
id
.indexOf(SENSOR_TYPE_SEPARATOR);
41
return
pos != -1 ?
id
.left(pos) : id;
42
}
43
44
#endif
// ID_UTILS_H
getCleanId
QString getCleanId(const QString &id)
Return leftmost part separated by ";".
Definition:
idutils.h:37
include
idutils.h
Generated by
1.9.4