1 #include "StRecordIterator.h"
2 #include "RecordList.h"
7 using namespace TxLogging;
12 RecordList::RecordList():vector<
StRecord*>(){};
23 RecordList::~RecordList()
30 void Delete(
StRecord* r) {
delete r; }
31 void PrintFields(
StRecord* r) { r->print(); }
32 void PrintHeader(
StRecord* r) { r->printHeader(); }
35 void RecordList::Clear()
37 for_each(begin(),end(),Delete);
41 void RecordList::Print()
43 PrintHeader(*begin());
44 for_each(begin(),end(),PrintFields);