Foxit PDF SDK
foxit::pdf::TimeRange类 参考

继承自 Object .

Public 成员函数

 TimeRange (const DateTime &start_time, const DateTime &end_time)
 带参数的构造函数。 更多...
 
 TimeRange ()
 构造函数。
 
 TimeRange (const TimeRange &other)
 带另一个时间范围对象的构造函数。 更多...
 
 ~TimeRange ()
 析构函数。
 
bool operator != (const TimeRange &other) const
 不相等运算符。 更多...
 
TimeRangeoperator= (const TimeRange &other)
 赋值运算符。 更多...
 
bool operator== (const TimeRange &other) const
 相等运算符。 更多...
 
void Set (const DateTime &start_time, const DateTime &end_time)
 设置值。 更多...
 

Public 属性

DateTime end_time
 当前时间范围的结束时间。
 
DateTime start_time
 当前时间范围的开始时间。
 

详细描述

此类表示一个时间范围,包括开始时间和结束时间。

构造及析构函数说明

◆ TimeRange() [1/2]

foxit::pdf::TimeRange::TimeRange ( const DateTime start_time,
const DateTime end_time 
)
inline

带参数的构造函数。

参数
[in]start_time当前时间范围的开始时间。
[in]end_time当前时间范围的结束时间。

◆ TimeRange() [2/2]

foxit::pdf::TimeRange::TimeRange ( const TimeRange other)
inline

带另一个时间范围对象的构造函数。

参数
[in]other另一个时间范围对象。

成员函数说明

◆ operator !=()

bool foxit::pdf::TimeRange::operator != ( const TimeRange other) const
inline

不相等运算符。

参数
[in]other另一个时间范围对象。此函数将检查当前对象是否与此对象不相等。
返回
true 表示不相等,false 表示相等。

◆ operator=()

TimeRange& foxit::pdf::TimeRange::operator= ( const TimeRange other)
inline

赋值运算符。

参数
[in]other另一个时间范围对象,其值将被赋给当前对象。
返回
当前对象的引用。

◆ operator==()

bool foxit::pdf::TimeRange::operator== ( const TimeRange other) const
inline

相等运算符。

参数
[in]other另一个时间范围对象。此函数将检查当前对象是否与此对象相等。
返回
true 表示相等,false 表示不相等。

◆ Set()

void foxit::pdf::TimeRange::Set ( const DateTime start_time,
const DateTime end_time 
)
inline

设置值。

参数
[in]start_time当前时间范围的开始时间。
[in]end_time当前时间范围的结束时间。
返回
无。