/* */ #ifndef D_RANGE_H #define D_RANGE_H #include "common.h" #include #include "SharedHandle.h" namespace aria2 { class Range { private: off_t startByte_; off_t endByte_; off_t entityLength_; public: Range(); Range(off_t startByte, off_t endByte, off_t entityLength); Range(const Range& c); ~Range(); Range& operator=(const Range& c); bool operator==(const Range& range) const; bool operator!=(const Range& range) const; off_t getStartByte() const { return startByte_; } off_t getEndByte() const { return endByte_; } off_t getEntityLength() const { return entityLength_; } off_t getContentLength() const; }; typedef SharedHandle RangeHandle; } // namespace aria2 #endif // D_RANGE_H