Changeset 122 in pacpusframework for branches/2.0-beta1/include/Pacpus


Ignore:
Timestamp:
Jul 22, 2013, 11:45:45 PM (11 years ago)
Author:
morasjul
Message:

add function to PacpusSerialPort

Location:
branches/2.0-beta1/include/Pacpus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/include/Pacpus/PacpusTools/PacpusSerialPort.h

    r121 r122  
    6565    QString stopChar;
    6666
     67    int minPacketSize;
     68
     69    bool log;
     70
    6771
    6872};
  • branches/2.0-beta1/include/Pacpus/kernel/inputOutputInterface.h

    r119 r122  
    4343            PacpusTypedEvent<T> * typedEvent = dynamic_cast<PacpusTypedEvent<T> *> (event);
    4444
    45             qDebug() << "Revever " << getSignature() << " thread " << QThread::currentThread() << " Data & " << & typedEvent->data_;
     45            //qDebug() << "Reciever " << getSignature() << " thread " << QThread::currentThread() << " Data & " << & typedEvent->data_;
    4646
    4747            //if(_component) get state
     
    5454            switch (readingMode_){
    5555            case TimeBounded:
    56                 qDebug() << "Input " << this->getSignature().leftJustified(20) << QString("Time bournded").leftJustified(15) << road_time()- typedEvent->t_ << "\t" << typedEvent->tr_;
     56                //qDebug() << "Input " << this->getSignature().leftJustified(20) << QString("Time bournded").leftJustified(15) << road_time()- typedEvent->t_ << "\t" << typedEvent->tr_;
    5757
    5858                if(road_time() - typedEvent->t_> typedEvent->tr_)
     
    6363
    6464            case GetLast:
    65                 qDebug() << "Input " << this->getSignature().leftJustified(20) << QString("GetLast").leftJustified(15) << road_time() - typedEvent->t_ << "\t" << typedEvent->tr_;
     65                //qDebug() << "Input " << this->getSignature().leftJustified(20) << QString("GetLast").leftJustified(15) << road_time() - typedEvent->t_ << "\t" << typedEvent->tr_;
    6666
    6767                (dynamic_cast<C*>(_component)->*method)(typedEvent->data_);
     
    7070
    7171            case NeverSkip:
    72                 qDebug() << "Input " << this->getSignature().leftJustified(20) << QString("NeverSkip").leftJustified(15) << road_time() - typedEvent->t_ << "\t" << typedEvent->tr_;
     72                //qDebug() << "Input " << this->getSignature().leftJustified(20) << QString("NeverSkip").leftJustified(15) << road_time() - typedEvent->t_ << "\t" << typedEvent->tr_;
    7373
    7474            default:
     
    138138        for(QList<ConnectionBase>::iterator it = _connection.begin(); it!=_connection.end(); ++it){
    139139            QApplication::postEvent(it->getInterface(),new PacpusTypedEvent<T>(TYPED_EVENT,data,t,tr),it->getPriority()); // Event is delete by the event loop handler
    140             qDebug() << "sender " << it->getInterface()->getSignature() <<  " thread " << QThread::currentThread() << " Data & " << &data << " ";
    141             // TODO DAta SHAred
     140            //qDebug() << "sender " << it->getInterface()->getSignature() <<  " thread " << QThread::currentThread() << " Data & " << &data << " ";
     141            // TODO Data Shared
    142142        }
    143143    }
Note: See TracChangeset for help on using the changeset viewer.