农历日历 v1.0.4
载入中...
搜索中...
未找到
| Public 槽 | Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
CLunarTable类 参考

产生、保存、加载农历缓存。用于提高性能。 更多...

#include <LunarTable.h>

类 CLunarTable 继承关系图:

struct  _LUNAR_DAY
 

Public 槽

void slotGenerateFinished ()
 

Public 成员函数

int GetLunar (const QDate &date, _LUNAR_DAY &lunar, bool cache=true)
 得到指定日期的农历
 
int Load (const QString &file)
 
int Save (const QString &file, bool bAll=true)
 
int Generate (const QDate &min, const QDate &max, const QString &szFile, int nThread=2, bool bClearCache=false, bool bSaveAllDate=true)
 
int Generate (const QDate &min, const QDate &max, bool bUseCached)
 

静态 Public 成员函数

static CLunarTableInstance ()
 

详细描述

产生、保存、加载农历缓存。用于提高性能。

作者
康 林 kl222.nosp@m.@126.nosp@m..com
参见
CLunarCalendar::LoadCalendarTable CLunarCalendar::GenerateCalendarTable

在文件 LunarTable.h20 行定义.

成员函数说明

◆ Generate() [1/2]

int CLunarTable::Generate ( const QDate &  min,
const QDate &  max,
bool  bUseCached 
)

在文件 LunarTable.cpp214 行定义.

◆ Generate() [2/2]

int CLunarTable::Generate ( const QDate &  min,
const QDate &  max,
const QString &  szFile,
int  nThread = 2,
bool  bClearCache = false,
bool  bSaveAllDate = true 
)

在文件 LunarTable.cpp157 行定义.

◆ GetLunar()

int CLunarTable::GetLunar ( const QDate &  date,
_LUNAR_DAY lunar,
bool  cache = true 
)

得到指定日期的农历

参数
date要查询的日期
lunar相应的农历
cache是否先从缓存查找
  • true: 先从缓存查找,如果没查到,则计算。
  • false: 不查缓存,直接计算。
返回
0,成功;其它,失败

在文件 LunarTable.cpp247 行定义.

◆ Instance()

CLunarTable * CLunarTable::Instance ( )
static

在文件 LunarTable.cpp42 行定义.

◆ Load()

int CLunarTable::Load ( const QString &  file)

在文件 LunarTable.cpp107 行定义.

◆ Save()

int CLunarTable::Save ( const QString &  file,
bool  bAll = true 
)

在文件 LunarTable.cpp76 行定义.

◆ slotGenerateFinished

void CLunarTable::slotGenerateFinished ( )
slot

在文件 LunarTable.cpp197 行定义.


该类的文档由以下文件生成: