add options for fftw3 precisions
configureFromFullPathDevice for all devices now trim() components
This commit is contained in:
@@ -938,7 +938,7 @@ PIString PIBinaryLog::constructFullPathDevice() const {
|
||||
void PIBinaryLog::configureFromFullPathDevice(const PIString & full_path) {
|
||||
const PIStringList pl = full_path.split(":");
|
||||
for (int i = 0; i < pl.size_s(); ++i) {
|
||||
const PIString p(pl[i]);
|
||||
const PIString p(pl[i].trimmed());
|
||||
switch (i) {
|
||||
case 0: setLogDir(p); break;
|
||||
case 1: setFilePrefix(p); break;
|
||||
|
||||
@@ -181,7 +181,7 @@ void PICAN::configureFromFullPathDevice(const PIString & full_path) {
|
||||
PIString p(pl[i]);
|
||||
switch (i) {
|
||||
case 0: setPath(p); break;
|
||||
case 1: setCANID(p.toInt(16)); break;
|
||||
case 1: setCANID(p.trimmed().toInt(16)); break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1047,7 +1047,7 @@ void PIEthernet::configureFromFullPathDevice(const PIString & full_path) {
|
||||
PIStringList pl = full_path.split(":");
|
||||
bool mcast = false;
|
||||
for (int i = 0; i < pl.size_s(); ++i) {
|
||||
PIString p(pl[i]);
|
||||
PIString p(pl[i].trimmed());
|
||||
switch (i) {
|
||||
case 0:
|
||||
p = p.toLowerCase();
|
||||
|
||||
@@ -1067,7 +1067,7 @@ PIString PIPeer::constructFullPathDevice() const {
|
||||
void PIPeer::configureFromFullPathDevice(const PIString & full_path) {
|
||||
PIStringList pl = full_path.split(":");
|
||||
for (int i = 0; i < pl.size_s(); ++i) {
|
||||
PIString p(pl[i]);
|
||||
PIString p(pl[i].trimmed());
|
||||
switch (i) {
|
||||
case 0: changeName(p); break;
|
||||
case 1: setTrustPeerName(p); break;
|
||||
|
||||
@@ -983,7 +983,7 @@ void PISerial::configureFromFullPathDevice(const PIString & full_path) {
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < pl.size_s(); ++i) {
|
||||
PIString p(pl[i]);
|
||||
PIString p(pl[i].trimmed());
|
||||
switch (i) {
|
||||
case 0: setProperty("path", p); break;
|
||||
case 1:
|
||||
|
||||
@@ -182,7 +182,7 @@ void PISharedMemory::configureFromFullPathDevice(const PIString & full_path) {
|
||||
initPrivate();
|
||||
PIStringList pl = full_path.split(":");
|
||||
for (int i = 0; i < pl.size_s(); ++i) {
|
||||
PIString p(pl[i]);
|
||||
PIString p(pl[i].trimmed());
|
||||
switch (i) {
|
||||
case 0: setPath(p); break;
|
||||
case 1: dsize = p.toInt(); break;
|
||||
|
||||
@@ -187,7 +187,7 @@ PIString PISPI::constructFullPathDevice() const {
|
||||
void PISPI::configureFromFullPathDevice(const PIString & full_path) {
|
||||
PIStringList pl = full_path.split(":");
|
||||
for (int i = 0; i < pl.size_s(); ++i) {
|
||||
PIString p(pl[i]);
|
||||
PIString p(pl[i].trimmed());
|
||||
switch (i) {
|
||||
case 0: setPath(p); break;
|
||||
case 1: setSpeed(p.toInt()); break;
|
||||
|
||||
Reference in New Issue
Block a user