support for multi ctor CONNECTL
This commit is contained in:
@@ -404,10 +404,15 @@ PIObject::Connection PIObject::piConnectLS(PIObject * src, const PIString & sig,
|
||||
return Connection();
|
||||
}
|
||||
if (m_src.size() != 1) {
|
||||
piCout << "[piConnectLS] Error: can`t connect overloaded event \"" << sig << "\" in class \"" << src->className() << "\"! (" << loc
|
||||
<< ")";
|
||||
delete f;
|
||||
return Connection();
|
||||
PIString ffm = m_src[0].fullFormat();
|
||||
for (int i = 1; i < m_src.size_s(); ++i) {
|
||||
if (ffm != m_src[i].fullFormat()) {
|
||||
piCout << "[piConnectLS] Error: can`t connect overloaded event \"" << sig << "\" in class \"" << src->className()
|
||||
<< "\", found " << m_src.size() << " events! (" << loc << ")";
|
||||
delete f;
|
||||
return Connection();
|
||||
}
|
||||
}
|
||||
}
|
||||
PIObject::Connection conn(0, m_src[0].addr, sig, src);
|
||||
// piCout << "found";
|
||||
|
||||
Reference in New Issue
Block a user