acl/lib_acl_cpp/samples/diff/mail_object.h

37 lines
1.0 KiB
C
Raw Normal View History

#pragma once
2018-12-12 11:16:12 +08:00
class mail_object : public acl::diff_object
{
public:
/**
* <EFBFBD>
2018-12-12 11:16:12 +08:00
* @param manager {diff_manager&}
* @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:
// override: 鍩虹被绾櫄鍑芥暟鐨勫疄鐜<E79684>
2018-12-12 11:16:12 +08:00
const char* get_key() const;
// override: 鍩虹被绾櫄鍑芥暟鐨勫疄鐜<E79684>
2018-12-12 11:16:12 +08:00
const char* get_val() const;
// 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_;
// 鏋愭瀯鍑芥暟澹版槑涓虹鏈夌殑锛屼粠鑰岃姹傚姩鎬佸垱寤烘湰绫诲璞<EE87AE>
2018-12-12 11:16:12 +08:00
~mail_object();
};