Changeset 290 in pacpusframework for trunk/src/PacpusLib
- Timestamp:
- Mar 27, 2014, 12:53:36 PM (11 years ago)
- Location:
- trunk/src/PacpusLib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/PacpusLib/ComponentBase.cpp
r288 r290 17 17 #include <boost/program_options/parsers.hpp> 18 18 #include <boost/program_options/variables_map.hpp> 19 //#include <boost/thread/thread.hpp>20 19 #include <ostream> 21 20 #include <string> … … 245 244 } 246 245 247 InputInterfaceBase 246 InputInterfaceBase* ComponentBase::getInput(QString inputName) const 248 247 { 249 248 if (inputs().contains(inputName)) { 250 return inputs()[inputName] ;249 return inputs()[inputName].get(); 251 250 } 252 251 LOG_WARN("Component " << getName() << " does not contain input " << inputName); … … 254 253 } 255 254 256 OutputInterfaceBase 255 OutputInterfaceBase* ComponentBase::getOutput(QString outputName) const 257 256 { 258 257 if (outputs().contains(outputName)) { 259 return outputs()[outputName] ;258 return outputs()[outputName].get(); 260 259 } 261 260 LOG_WARN("Component " << getName() << " does not contain output " << outputName); -
trunk/src/PacpusLib/ComponentManager.cpp
r288 r290 38 38 /// Connects OutputInterfaceBase @b out to InputInterfaceBase @b in using given priority and reading mode. 39 39 /// @returns @b true if connection has been added successfully, @b false otherwise. 40 bool connectInterface(OutputInterfaceBase * out, InputInterfaceBase* in, int priority, InputInterfaceBase::ReadingMode mode = InputInterfaceBase::GetLast);40 bool connectInterface(OutputInterfaceBase* out, InputInterfaceBase* in, int priority, InputInterfaceBase::ReadingMode mode = InputInterfaceBase::GetLast); 41 41 42 42 //////////////////////////////////////////////////////////////////////////////// 43 43 44 bool connectInterface(OutputInterfaceBase * out, InputInterfaceBase* in, int priority, InputInterfaceBase::ReadingMode mode)44 bool connectInterface(OutputInterfaceBase* out, InputInterfaceBase* in, int priority, InputInterfaceBase::ReadingMode mode) 45 45 { 46 46 // check connections
Note:
See TracChangeset
for help on using the changeset viewer.