Changeset 120 in pacpusframework for branches/2.0-beta1/src/PacpusLib


Ignore:
Timestamp:
07/15/13 16:59:37 (11 years ago)
Author:
morasjul
Message:
  • add PacpusSerialport (QT 5.1 required)
  • add part of QT4 / QT5 cmake script
  • fix CMake (link)
  • add ComponentBase virtual function addInput() & addOutput() call before component configuration
Location:
branches/2.0-beta1/src/PacpusLib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/src/PacpusLib/CMakeLists.txt

    r111 r120  
    6565    ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/inputOutputInterface.h
    6666    ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/PacpusEvent.h
    67     #${PACPUS_INCLUDE_DIR}/Pacpus/kernel/CommunicationComponent.h
     67    #${PACPUS_INCLUDE_DIR}/Pacpus/kernel/pacpusStruct.h
    6868
    6969    ./ComponentBase.cpp
     
    7575    ./XmlConfigFile.cpp
    7676    ./inputOutputBase.cpp
     77    #./pacpusStruct.cpp
    7778)
    7879
     
    8283)
    8384
    84  qt5_wrap_cpp(
     85qt5_wrap_cpp(
    8586     PROJECT_MOC_SRCS
    8687     ${FILES_TO_MOC}
     
    9798
    9899if(UNIX)
    99         set(LIBS optimized FileLib debug FileLib_d)
     100    set(OPT_LIBRARIES optimized FileLib debug FileLib_d)
    100101else()
    101     set(LIBS
    102         optimized ROAD_TIME debug ROAD_TIME_d
    103         )
     102    set(OPT_LIBRARIES optimized ROAD_TIME debug ROAD_TIME_d)
    104103endif()
    105104
     
    111110    ${QT_LIBRARIES}
    112111    ${PACPUS_DEPENDENCIES_LIB}
    113     ${LIBS}
     112    ${OPT_LIBRARIES}
    114113)
    115114
  • branches/2.0-beta1/src/PacpusLib/ComponentBase.cpp

    r110 r120  
    104104    }
    105105}
     106
     107void ComponentBase::addInput()
     108{
     109
     110}
     111
     112void ComponentBase::addOutput()
     113{
     114
     115}
  • branches/2.0-beta1/src/PacpusLib/ComponentManager.cpp

    r110 r120  
    263263            LOG_WARN("component '" << componentName << "' does not exist");
    264264        } else {
     265           // Pacpus 2.0 : add input and output
     266            component->addInput();
     267            component->addOutput();
     268
    265269            if (component->configuration_ == ComponentBase::CONFIGURATION_DELAYED) {
    266270                LOG_DEBUG("try to configure component '" << componentName << "'");
     
    299303        int connectionPriority = cfg.getConnectionPriority();
    300304
     305
     306        //TODO set connection mode from string
     307
     308        //InputInterfaceBase::GetLast;
     309        //InputInterfaceBase::NeverSkip;
     310        //InputInterfaceBase::TimeBounded;
     311
     312
    301313        if (!createConnection(connectionOutput, connectionInput, connectionType,connectionPriority)) {
    302314            LOG_ERROR("cannot create connection '" << connectionOutput+"=>"+connectionInput << "'");
    303315            continue;
    304316        }
    305     }
     317    } // for
    306318
    307319    return componentMap_.count();
Note: See TracChangeset for help on using the changeset viewer.