Changeset 193 in pacpusframework


Ignore:
Timestamp:
10/24/13 15:53:36 (11 years ago)
Author:
Marek Kurdej
Message:

Minor: NewComponent modifications: added addInputs, addOutputs.

Location:
trunk/src/_NewComponent
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/_NewComponent/NewComponent.cpp.in

    r192 r193  
    3232}
    3333
    34 //////////////////////////////////////////////////////////////////////////
    3534@PACPUS_COMPONENT_NAME@::~@PACPUS_COMPONENT_NAME@()
    3635{
    3736    LOG_TRACE("destructor");
     37}
     38
     39//////////////////////////////////////////////////////////////////////////
     40void @PACPUS_COMPONENT_NAME@::addInputs()
     41{
     42    //addInput<InputType, @PACPUS_COMPONENT_NAME@>("input-name", &@PACPUS_COMPONENT_NAME@::processInput);
     43}
     44
     45void @PACPUS_COMPONENT_NAME@::addOutputs()
     46{
     47    //addOutput<OutputType, @PACPUS_COMPONENT_NAME@>("output-name");
    3848}
    3949
     
    4353}
    4454
    45 //////////////////////////////////////////////////////////////////////////
    4655void @PACPUS_COMPONENT_NAME@::stopActivity()
    4756{
  • trunk/src/_NewComponent/NewComponent.h.in

    r192 r193  
    3535
    3636    /// Starts the component
    37     virtual void startActivity();
     37    virtual void startActivity() /* override */;
    3838    /// Stops the component
    39     virtual void stopActivity();
     39    virtual void stopActivity() /* override */;
    4040    /// Configures components
    41     virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
     41    virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config) /* override */;
    4242
    4343//public Q_SLOTS:
    4444protected:
     45    /// Adds component inputs
     46    virtual void addInputs() /* override */;
     47    /// Adds component outputs
     48    virtual void addOutputs() /* override */;
     49   
     50private:
     51    //void processInput(const InputType & input);
     52
    4553private:
    4654};
Note: See TracChangeset for help on using the changeset viewer.