CMGDK r49-rc2
公有成员 | 公有属性 | 保护成员
hgl::Time类参考

时间类 更多...

#include <DateTime.H>

继承图,类hgl::Time
hgl::DataObject hgl::Object hgl::_Object

所有成员的列表。

公有成员

 Time (int=0)
 Time (int, int, int, int)
void Sync ()
 和系统时间同步
bool SaveToStream (Stream *)
bool LoadFromStream (Stream *)

公有属性

Property< intHour
 
Property< intMinute
 
Property< intSecond
 
Property< intMicroSecond
 千分秒

保护成员

int GetHours ()
int GetMinutes ()
int GetSeconds ()
int GetMicroSeconds ()
void SetHours (int)
void SetMinutes (int)
void SetSeconds (int)
void SetMicroSeconds (int)
void InitPrivate ()

详细描述

时间类

时间类,这个类用来保存和计算时间。

当您对Hours,Minutes,Seconds中任何一个值进行加减时,其它值都会自动计算。如:11:30这个值,使用Minutes+=55。会自动计算出55分钟后的时间,值为12:25


构造及析构函数文档

hgl::Time::Time ( int  t = 0)
hgl::Time::Time ( int  h,
int  m,
int  s,
int  ms 
)

成员函数文档

int hgl::Time::GetHours ( ) [inline, protected]
int hgl::Time::GetMicroSeconds ( ) [inline, protected]
int hgl::Time::GetMinutes ( ) [inline, protected]
int hgl::Time::GetSeconds ( ) [inline, protected]
void hgl::Time::InitPrivate ( ) [protected]
bool hgl::Time::LoadFromStream ( Stream str) [virtual]

重载hgl::DataObject

bool hgl::Time::SaveToStream ( Stream str) [virtual]

重载hgl::DataObject

void hgl::Time::SetHours ( int  h) [protected]
void hgl::Time::SetMicroSeconds ( int  ms) [protected]
void hgl::Time::SetMinutes ( int  m) [protected]
void hgl::Time::SetSeconds ( int  s) [protected]
void hgl::Time::Sync ( )

和系统时间同步


成员数据文档

千分秒


该类的文档由以下文件生成:
 全部  名字空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义