Changeset 199 in pacpusframework for trunk/src


Ignore:
Timestamp:
Oct 28, 2013, 2:28:14 PM (11 years ago)
Author:
Marek Kurdej
Message:

Update: fixed getDataSize(), getDataType() in connections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PacpusLib/ComponentManager.cpp

    r185 r199  
    66/// @version    $Id: ComponentManager.cpp 76 2013-01-10 17:05:10Z kurdejma $
    77
     8#include <Pacpus/kernel/ComponentManager.h>
     9
    810#include <Pacpus/kernel/ComponentFactoryBase.h>
    9 #include <Pacpus/kernel/ComponentManager.h>
    1011#include <Pacpus/kernel/ComponentBase.h>
    1112#include <Pacpus/kernel/ConnectionBase.h>
    1213#include <Pacpus/kernel/InputOutputBase.h>
    1314#include <Pacpus/kernel/Log.h>
     15
    1416#include <QDomNodeList>
    1517#include <QObject>
     
    2729bool connectInterface(OutputInterfaceBase * out, InputInterfaceBase * in, int priority, InputInterfaceBase::ReadingMode mode)
    2830{
    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))) {
    3034        // Add connection
    3135        out->addConnection(ConnectionBase(in, priority));  // TODO make connect function
Note: See TracChangeset for help on using the changeset viewer.