2019-07-27 22:44:32 +08:00
|
|
|
|
#pragma once
|
2018-12-12 11:16:12 +08:00
|
|
|
|
|
|
|
|
|
class mail_object : public acl::diff_object
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
/**
|
2019-07-27 22:44:32 +08:00
|
|
|
|
* 鏋勯€犲嚱鏁<EFBFBD>
|
2018-12-12 11:16:12 +08:00
|
|
|
|
* @param manager {diff_manager&}
|
2019-07-27 22:44:32 +08:00
|
|
|
|
* @param key {const char*} 浠ュ瓧绗︿覆鏂瑰紡琛ㄧず鐨勯敭锛岄潪绌哄瓧绗︿覆
|
|
|
|
|
* @param val {const char*} 浠ュ瓧绗︿覆鏂瑰紡琛ㄧず鐨勫€硷紝闈炵┖瀛楃涓<EFBFBD>
|
2018-12-12 11:16:12 +08:00
|
|
|
|
*/
|
|
|
|
|
mail_object(acl::diff_manager& manager, const char* key, const char* val);
|
|
|
|
|
|
|
|
|
|
void set_ctime(long long n);
|
|
|
|
|
|
|
|
|
|
public:
|
2019-07-27 22:44:32 +08:00
|
|
|
|
// override: 鍩虹被绾櫄鍑芥暟鐨勫疄鐜<E79684>
|
2018-12-12 11:16:12 +08:00
|
|
|
|
const char* get_key() const;
|
|
|
|
|
|
2019-07-27 22:44:32 +08:00
|
|
|
|
// override: 鍩虹被绾櫄鍑芥暟鐨勫疄鐜<E79684>
|
2018-12-12 11:16:12 +08:00
|
|
|
|
const char* get_val() const;
|
|
|
|
|
|
2019-07-27 22:44:32 +08:00
|
|
|
|
// override: 鍩虹被绾嚱鏁扮殑瀹炵幇
|
2018-12-12 11:16:12 +08:00
|
|
|
|
bool operator== (const acl::diff_object& obj) const;
|
|
|
|
|
|
|
|
|
|
// @override
|
|
|
|
|
bool check_range(long long from, long long to) const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
const char* key_;
|
|
|
|
|
const char* val_;
|
|
|
|
|
long long ctime_;
|
|
|
|
|
|
2019-07-27 22:44:32 +08:00
|
|
|
|
// 鏋愭瀯鍑芥暟澹版槑涓虹鏈夌殑锛屼粠鑰岃姹傚姩鎬佸垱寤烘湰绫诲璞<EE87AE>
|
2018-12-12 11:16:12 +08:00
|
|
|
|
~mail_object();
|
|
|
|
|
};
|