Changeset 199 in pacpusframework for trunk/src/PacpusLib/ComponentManager.cpp
- Timestamp:
- Oct 28, 2013, 2:28:14 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/PacpusLib/ComponentManager.cpp
r185 r199 6 6 /// @version $Id: ComponentManager.cpp 76 2013-01-10 17:05:10Z kurdejma $ 7 7 8 #include <Pacpus/kernel/ComponentManager.h> 9 8 10 #include <Pacpus/kernel/ComponentFactoryBase.h> 9 #include <Pacpus/kernel/ComponentManager.h>10 11 #include <Pacpus/kernel/ComponentBase.h> 11 12 #include <Pacpus/kernel/ConnectionBase.h> 12 13 #include <Pacpus/kernel/InputOutputBase.h> 13 14 #include <Pacpus/kernel/Log.h> 15 14 16 #include <QDomNodeList> 15 17 #include <QObject> … … 27 29 bool connectInterface(OutputInterfaceBase * out, InputInterfaceBase * in, int priority, InputInterfaceBase::ReadingMode mode) 28 30 { 29 if (out->getDataType() == in->getDataType() || out->getDataType() == QString(typeid(QByteArray).name()) || in->getDataType() == QString(typeid(QByteArray).name())) { 31 if ((out->getDataType() == in->getDataType()) 32 || (out->getDataType() == typeid(QByteArray)) 33 || (in->getDataType() == typeid(QByteArray))) { 30 34 // Add connection 31 35 out->addConnection(ConnectionBase(in, priority)); // TODO make connect function
Note:
See TracChangeset
for help on using the changeset viewer.