git-svn-id: svn://db.shs.com.ru/pip@677 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "pican.h"
|
||||
#include "pipropertystorage.h"
|
||||
#include "piincludes_p.h"
|
||||
#if !defined(WINDOWS) && !defined(MAC_OS)
|
||||
# define PIP_CAN
|
||||
@@ -136,3 +137,17 @@ void PICAN::configureFromFullPathDevice(const PIString & full_path) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
PIPropertyStorage PICAN::constructVariantDevice() const {
|
||||
PIPropertyStorage ret;
|
||||
ret.addProperty("path", path());
|
||||
ret.addProperty("CAN ID", PIString::fromNumber(CANID(),16));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
void PICAN::configureFromVariantDevice(const PIPropertyStorage & d) {
|
||||
setPath(d.propertyValueByName("path").toString());
|
||||
setCANID(d.propertyValueByName("CAN ID").toString().toInt(16));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user