Ignore:
Timestamp:
06/03/13 18:13:21 (11 years ago)
Author:
morasjul
Message:

beta : correct reading mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/include/Pacpus/kernel/inputOutputBase.h

    r100 r102  
    4747    //InputInterfaceBase(QString name, ComponentBase * component,int a, QObject * parent = 0):AbstractInterface(name,component,parent) {} // TODO add ctor with function pointer
    4848
     49            enum ReadingMode {
     50        NeverSkip,
     51        TimeBounded,
     52        GetLast
     53    };
     54
    4955    virtual ~InputInterfaceBase(){}
    5056
     
    6066    }
    6167
     68    void setReadingMode(ReadingMode mode) { readingMode_ = mode;}
    6269    virtual PacpusEvent getEventTemplate() {return PacpusEvent(GENERIC_EVENT);} // TODO check ??
    63 
     70protected:
     71            ReadingMode readingMode_;
    6472};
    6573
     
    103111        in->addConnection(ConnectionBase(out,priority));
    104112        //LOG_INFO("connection : Output " << out->getSignature() << " => Input " << in->getSignature());
     113                in->setReadingMode(InputInterfaceBase::NeverSkip);
    105114        return true;
    106115    } else {
Note: See TracChangeset for help on using the changeset viewer.