Changeset 206 in pacpusframework for trunk/src/PacpusLib/ConnectionManager.cpp


Ignore:
Timestamp:
Oct 30, 2013, 12:26:34 PM (11 years ago)
Author:
Marek Kurdej
Message:

Major: cleaned connection interfaces.

File:
1 edited

Legend:

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

    r89 r206  
    1 
    21#include  <Pacpus/kernel/ConnectionManager.h>
    32#include  <Pacpus/kernel/Log.h>
     
    1514{
    1615    LOG_TRACE("destructor");
    17 
    18 
    1916}
    2017
     
    4138    LOG_TRACE(Q_FUNC_INFO);
    4239
    43     ComponentManager *mgr = ComponentManager::getInstance();
    44 
     40    ComponentManager * mgr = ComponentManager::getInstance();
    4541
    4642    // TODO read XML file and build ConnectionList
    4743    QList<ConnectionDescriptor> ConnectionList;
    48     ConnectionList.append(ConnectionDescriptor("testComponent1","image","testComponent2","image","type"));
     44    ConnectionList.append(ConnectionDescriptor("testComponent1", "image", "testComponent2", "image", "type"));
    4945
    5046    ComponentBase * sender, * receiver;
     
    5248    OutputInterfaceBase * out;
    5349
    54     for(QList<ConnectionDescriptor>::iterator i = ConnectionList.begin(); i != ConnectionList.end(); ++i) {
    55 
     50    for (QList<ConnectionDescriptor>::iterator i = ConnectionList.begin(); i != ConnectionList.end(); ++i) {
    5651        // TODO Handle errors
    5752        sender = mgr->getComponent(i->_outputComponent);
    5853        out = sender->getOutput(i->_outputName);
    59 
    6054
    6155        receiver = mgr->getComponent(i->_inputComponent);
     
    6660        LOG_INFO(" Output " << "out" << " connected to " << "in") // TODO replace out / in
    6761    }
    68 
    6962
    7063//    CledComponent * cledComponent = (CledComponent*) m_component[cName];
     
    8275//    in1->setConnection(buffer,true);
    8376//    out1->setConnection(buffer,true);
    84 
    85 
    8677}
    87 
Note: See TracChangeset for help on using the changeset viewer.