Changeset 206 in pacpusframework for trunk/src/PacpusLib/ConnectionManager.cpp
- Timestamp:
- Oct 30, 2013, 12:26:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/PacpusLib/ConnectionManager.cpp
r89 r206 1 2 1 #include <Pacpus/kernel/ConnectionManager.h> 3 2 #include <Pacpus/kernel/Log.h> … … 15 14 { 16 15 LOG_TRACE("destructor"); 17 18 19 16 } 20 17 … … 41 38 LOG_TRACE(Q_FUNC_INFO); 42 39 43 ComponentManager *mgr = ComponentManager::getInstance(); 44 40 ComponentManager * mgr = ComponentManager::getInstance(); 45 41 46 42 // TODO read XML file and build ConnectionList 47 43 QList<ConnectionDescriptor> ConnectionList; 48 ConnectionList.append(ConnectionDescriptor("testComponent1", "image","testComponent2","image","type"));44 ConnectionList.append(ConnectionDescriptor("testComponent1", "image", "testComponent2", "image", "type")); 49 45 50 46 ComponentBase * sender, * receiver; … … 52 48 OutputInterfaceBase * out; 53 49 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) { 56 51 // TODO Handle errors 57 52 sender = mgr->getComponent(i->_outputComponent); 58 53 out = sender->getOutput(i->_outputName); 59 60 54 61 55 receiver = mgr->getComponent(i->_inputComponent); … … 66 60 LOG_INFO(" Output " << "out" << " connected to " << "in") // TODO replace out / in 67 61 } 68 69 62 70 63 // CledComponent * cledComponent = (CledComponent*) m_component[cName]; … … 82 75 // in1->setConnection(buffer,true); 83 76 // out1->setConnection(buffer,true); 84 85 86 77 } 87
Note:
See TracChangeset
for help on using the changeset viewer.