/********************************************************************* * * file: MemCut.h * * copyright: Shanghai Baosight Software Co., Ltd. * * Version history * 1.0 2020-02-16 zoufuzhou create * *********************************************************************/ #ifndef _H_MEM_CUT_H #define _H_MEM_CUT_H #include using namespace baosight; class CMemCut { public: CMemCut(); public: ~CMemCut(void); public: //read cut by memory index COIL_CUT* operator[](int index); //read cut by ti COIL_CUT* operator()(int ti); CUT_UNIT* operator()(int ti, int mode); COIL_CUT* operator()(const string& coilid); CUT_UNIT* operator()(const string& coilid, int mode); //store cut info int push(const CUT_UNIT* cut); //store unique scarp ,sample cut info int uniquePush(const CUT_UNIT* cut); //match extId int match(int ti,const string& extId); int match(const string& entId,const string& extId); int match(const string& entId,const string& extId,int length); void print(int ti); private: TRK_CUTS* p_cut; }; #endif