/* */ #ifndef _D_SEGMENT_SPLITTER_H_ #define _D_SEGMENT_SPLITTER_H_ #include "Segment.h" #include "Logger.h" #include "common.h" class SegmentSplitter { protected: long long int minSegmentSize; const Logger* logger; void split(Segment& seg, int cuid, Segment& s) const; public: SegmentSplitter(); virtual ~SegmentSplitter() {} virtual bool splitSegment(Segment& newSegment, int cuid, Segments& segments) = 0; void setMinSegmentSize(long long int size) { minSegmentSize = size; } long long int getMinSegmentSize() const { return minSegmentSize; } }; #endif // _D_SEGMENT_SPLITTER_H_