| 84 | */ |
| 85 | |
| 86 | eTickResult cExampleSinkPlugin::myTick(long long t) |
| 87 | { |
| 88 | SMILE_IDBG(4,"tick # %i, reading value vector:",t); |
| 89 | cVector *vec= reader_->getFrameRel(lag); //new cVector(nValues+1); |
| 90 | if (vec == NULL) return TICK_SOURCE_NOT_AVAIL; |
| 91 | else reader_->nextFrame(); |
| 92 | |
| 93 | long vi = vec->tmeta->vIdx; |
| 94 | double tm = vec->tmeta->time; |
| 95 | |
| 96 | // now print the vector: |
| 97 | SMILE_IMSG(2,"FUCKING AWSOME PLUGIN OUTPUT:"); |
| 98 | int i; |
| 99 | for (i=0; i<vec->N; i++) { |
| 100 | printf(" (a=%ld vi=%ld, tm=%fs) %s.%s = %f\n",reader_->getCurR(),vi,tm,reader_->getLevelName().c_str(),vec->name(i).c_str(),vec->data[i]); |
| 101 | } |
| 102 | |
| 103 | // SMILE_PRINT("%i",var1,) |
| 104 | |
| 105 | return TICK_SUCCESS; |
| 106 | } |
| 107 | |
| 108 | |
| 109 | cExampleSinkPlugin::~cExampleSinkPlugin() |
nothing calls this directly
no test coverage detected