git-svn-id: svn://db.shs.com.ru/pip@524 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -294,7 +294,7 @@ public:
|
||||
piSwap<T*>(pid_data, other.pid_data);
|
||||
piSwap<size_t>(pid_size, other.pid_size);
|
||||
piSwap<size_t>(pid_rsize, other.pid_rsize);
|
||||
piSwap<size_t>(pid_start, other.pid_start);
|
||||
piSwap<ssize_t>(pid_start, other.pid_start);
|
||||
}
|
||||
|
||||
typedef int (*CompareFunc)(const T * , const T * );
|
||||
|
||||
@@ -873,12 +873,20 @@ int PIConnection::writeByFullPath(const PIString & full_path, const PIByteArray
|
||||
PIString fp = PIIODevice::normalizeFullPath(full_path);
|
||||
PIIODevice * dev = __device_pool__->device(fp);
|
||||
//piCout << "SEND" << full_path << fp;
|
||||
if (!dev) {
|
||||
piCoutObj << "No such full path \"" << full_path << "\"!";
|
||||
return -1;
|
||||
}
|
||||
return write(dev, data);
|
||||
}
|
||||
|
||||
|
||||
int PIConnection::writeByName(const PIString & name, const PIByteArray & data) {
|
||||
PIIODevice * dev = deviceByName(name);
|
||||
int PIConnection::writeByName(const PIString & name_, const PIByteArray & data) {
|
||||
PIIODevice * dev = deviceByName(name_);
|
||||
if (!dev) {
|
||||
piCoutObj << "No such device \"" << name_ << "\"!";
|
||||
return -1;
|
||||
}
|
||||
return write(dev, data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user