replace typedef function ptr by std::function
start PIMap refactoring
This commit is contained in:
@@ -374,8 +374,8 @@ inline PICout operator <<(PICout s, const PIBinaryLog::BinLogInfo & bi) {
|
||||
s << "read records " << bi.records_count << " in " << bi.records.size() << " types, log size " << bi.log_size;
|
||||
s << "\nlog start " << bi.start_time << " , log end " << bi.end_time;
|
||||
PIVector<int> keys = bi.records.keys();
|
||||
piForeachC(int i, keys) {
|
||||
const PIBinaryLog::BinLogRecordInfo &bri(bi.records[i]);
|
||||
for (int i : keys) {
|
||||
PIBinaryLog::BinLogRecordInfo bri = bi.records.at(i);
|
||||
s << "\n record id " << bri.id << " , count " << bri.count;
|
||||
s << "\n record start " << bri.start_time << " , end " << bri.end_time;
|
||||
s << "\n record size " << bri.minimum_size << " - " << bri.maximum_size;
|
||||
|
||||
@@ -32,8 +32,7 @@
|
||||
|
||||
/// TODO: написать документацию, тут ничего не понятно
|
||||
// function executed from threaded read, pass readedData, sizeOfData, ThreadedReadData
|
||||
typedef bool (*ReadRetFunc)(const uchar *, int, void *);
|
||||
|
||||
typedef std::function<bool(const uchar *, int, void *)> ReadRetFunc;
|
||||
|
||||
#ifdef DOXYGEN
|
||||
|
||||
|
||||
Reference in New Issue
Block a user