Ignore:
Timestamp:
01/10/17 14:36:29 (8 years ago)
Author:
oabramkina
Message:

Intermeadiate version for merging with new server functionalities.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/filter/store_filter.cpp

    r932 r1021  
    88  CStoreFilter::CStoreFilter(CGarbageCollector& gc, CContext* context, CGrid* grid) 
    99    : CInputPin(gc, 1) 
     10    , gc(gc) 
    1011    , context(context) 
    1112    , grid(grid) 
     
    2324    CTimer timer("CStoreFilter::getPacket"); 
    2425    CConstDataPacketPtr packet; 
    25     const double timeout = 10; // 10 seconds timeout 
     26    const double timeout = 10 ; // 10 seconds timeout 
    2627 
    2728    do 
    2829    { 
     30      if (canBeTriggered()) 
     31        trigger(timestamp); 
     32 
    2933      timer.resume(); 
    3034 
     
    3943 
    4044    if (!packet) 
     45    { 
     46      std::map<Time, CDataPacketPtr>::const_iterator it ; 
     47      info(0)<<"Impossible to get the packet with timestamp = " << timestamp<<std::endl<<"Available timestamp are : "<<std::endl ; 
     48      for(it=packets.begin();it!=packets.end();++it) info(0)<<it->first<<"  "; 
     49      info(0)<<std::endl ; 
    4150      ERROR("CConstDataPacketPtr CStoreFilter::getPacket(Time timestamp) const", 
    4251            << "Impossible to get the packet with timestamp = " << timestamp); 
    43  
     52    } 
    4453    return packet; 
    4554  } 
     
    6978    // The packet is always destroyed by the garbage collector 
    7079    // so we register but never unregister 
    71     gc.registerFilter(this, data[0]->timestamp); 
     80    gc.registerObject(this, data[0]->timestamp); 
    7281  } 
    7382 
Note: See TracChangeset for help on using the changeset viewer.