Changeset 96 in pacpusframework for branches/2.0-beta1/src/PacpusLib/ComponentManager.cpp
- Timestamp:
- May 23, 2013, 12:16:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/src/PacpusLib/ComponentManager.cpp
r89 r96 196 196 return false;} 197 197 198 OutputInterfaceBase * out = getComponent(output[0])->getOutput(output[1]); 199 InputInterfaceBase * in = getComponent(input[0])->getInput(input[1]); 200 201 // if(in->getDataType() == QString(typeid(QByteArray).name()) && out->getDataType() != QString(typeid(QByteArray).name())) 202 203 if(out->getDataType() == in->getDataType() || out->getDataType() == QString(typeid(QByteArray).name()) || in->getDataType() == QString(typeid(QByteArray).name())) { 204 205 // Add connection 206 out->addConnection(ConnectionBase(in,priority)); // TODO and type argument 207 LOG_INFO("connection : Output " << out->getSignature() << " => Input " << in->getSignature()) 208 return true; 209 } else { 210 LOG_WARN("connecting " << out->getSignature() << ":" << out->getDataType() << " to " << in->getSignature() << ":" << in->getDataType() << " failled : DataType incompatible " << QString(typeid(QByteArray).name())); 211 return false; 212 } 213 214 /* 215 FactoryMap::iterator it = factoryMap_.find(type); 216 if (it != factoryMap_.end()) 217 { 218 (*it)->addComponent(name); 219 return true; 220 } 221 return false;*/ 198 // NOTE Create communicationInterface if needed ?? 199 200 return connectInterface(getComponent(output[0])->getOutput(output[1]), getComponent(input[0])->getInput(input[1]), priority); 201 222 202 } 223 203
Note:
See TracChangeset
for help on using the changeset viewer.