Changeset 1021 for XIOS/dev/dev_olga/src/filter/store_filter.cpp
- Timestamp:
- 01/10/17 14:36:29 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/filter/store_filter.cpp
r932 r1021 8 8 CStoreFilter::CStoreFilter(CGarbageCollector& gc, CContext* context, CGrid* grid) 9 9 : CInputPin(gc, 1) 10 , gc(gc) 10 11 , context(context) 11 12 , grid(grid) … … 23 24 CTimer timer("CStoreFilter::getPacket"); 24 25 CConstDataPacketPtr packet; 25 const double timeout = 10 ; // 10 seconds timeout26 const double timeout = 10 ; // 10 seconds timeout 26 27 27 28 do 28 29 { 30 if (canBeTriggered()) 31 trigger(timestamp); 32 29 33 timer.resume(); 30 34 … … 39 43 40 44 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 ; 41 50 ERROR("CConstDataPacketPtr CStoreFilter::getPacket(Time timestamp) const", 42 51 << "Impossible to get the packet with timestamp = " << timestamp); 43 52 } 44 53 return packet; 45 54 } … … 69 78 // The packet is always destroyed by the garbage collector 70 79 // so we register but never unregister 71 gc.register Filter(this, data[0]->timestamp);80 gc.registerObject(this, data[0]->timestamp); 72 81 } 73 82
Note: See TracChangeset
for help on using the changeset viewer.