mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 01:10:52 +08:00
37 lines
1.0 KiB
C++
37 lines
1.0 KiB
C++
#pragma once
|
||
|
||
class mail_object : public acl::diff_object
|
||
{
|
||
public:
|
||
/**
|
||
* 鏋勯€犲嚱鏁<E59AB1>
|
||
* @param manager {diff_manager&}
|
||
* @param key {const char*} 浠ュ瓧绗︿覆鏂瑰紡琛ㄧず鐨勯敭锛岄潪绌哄瓧绗︿覆
|
||
* @param val {const char*} 浠ュ瓧绗︿覆鏂瑰紡琛ㄧず鐨勫€硷紝闈炵┖瀛楃涓<EE8381>
|
||
*/
|
||
mail_object(acl::diff_manager& manager, const char* key, const char* val);
|
||
|
||
void set_ctime(long long n);
|
||
|
||
public:
|
||
// override: 鍩虹被绾櫄鍑芥暟鐨勫疄鐜<E79684>
|
||
const char* get_key() const;
|
||
|
||
// override: 鍩虹被绾櫄鍑芥暟鐨勫疄鐜<E79684>
|
||
const char* get_val() const;
|
||
|
||
// override: 鍩虹被绾嚱鏁扮殑瀹炵幇
|
||
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_;
|
||
|
||
// 鏋愭瀯鍑芥暟澹版槑涓虹鏈夌殑锛屼粠鑰岃姹傚姩鎬佸垱寤烘湰绫诲璞<EE87AE>
|
||
~mail_object();
|
||
};
|