资源简介
OpenHoldem.rar
代码片段和文件信息
#include “StdAfx.h“
#include
#include “CTablemap.h“
#include “../CTransform/CTransform.h“
#ifdef OPENHOLDEM_PROGRAM
#include “../OpenHoldem/debug.h“
#endif
#ifdef OPENSCRAPE_PROGRAM
#include “../OpenScrape/debug.h“
#endif
CTablemap *p_tablemap = NULL;
CTablemap::CTablemap(void)
{
ClearTablemap();
}
CTablemap::~CTablemap(void)
{
}
void CTablemap::ClearTablemap()
{
CSLock lock(m_critsec);
_valid = false;
_filepath = ““;
_filename = ““;
_z$.clear();
_s$.clear();
_r$.clear();
for (int i=0; i<=3; i++)
{
_t$[i].clear();
_p$[i].clear();
_h$[i].clear();
}
_i$.clear();
}
int CTablemap::LoadTablemap(const char *_filename const char *version const bool check_ws_date int *linenum const bool disable_msgbox
CString *loaded_version)
{
CString strLine = ““ strLineType = ““ token = ““ s = ““ e = ““ hexval = ““ t = ““;
int pos = 0 x = 0 y = 0;
bool supported_version = false;
// temp
STablemapSize hold_size;
STablemapSymbol hold_symbol;
STablemapRegion hold_region;
STablemapFont hold_font;
STablemapHashPoint hold_hash_point;
STablemapHashValue hold_hash_value;
STablemapImage hold_image;
// Clean up the global.profile structure
ClearTablemap();
CSLock lock(m_critsec);
// Open the selected file
CFile cfFile(_filename CFile::modeRead | CFile::shareDenyNone);
_filepath = _filename;
// Load its contents into a CArchive
CArchive ar (&cfFile CArchive::load);
// Read the first line of the CArchive into strLine
strLine = ““;
*linenum = 1;
// Failed so quit
if (!ar.ReadString(strLine))
return ERR_EOF;
// skip any blank lines
while (strLine.GetLength() == 0)
{
(*linenum)++;
// Failed so quit
if (!ar.ReadString(strLine))
return ERR_EOF;
}
//
// Validate file version if passed in
// check the “.wsdb1“/“.ohdb1“/“.ohdb2“/“.osdb1“/“.osdb2“ line
if (strlen(version))
{
if (memcmp(version VER_OPENSCRAPE_1 strlen(version)) == 0 ||
memcmp(version VER_OPENSCRAPE_2 strlen(version)) == 0)
{
if (memcmp(strLine.GetString() VER_OPENHOLDEM_2 strlen(VER_OPENHOLDEM_2)) != 0 &&
memcmp(strLine.GetString() VER_OPENSCRAPE_1 strlen(VER_OPENSCRAPE_1)) != 0 &&
memcmp(strLine.GetString() VER_OPENSCRAPE_2 strlen(VER_OPENSCRAPE_2)) != 0)
{
return ERR_VERSION;
}
}
else
{
if (memcmp(strLine.GetString() version strlen(version)) != 0)
{
return ERR_VERSION;
}
}
}
// Save the version of the file we are loading
if (loaded_version != NULL)
{
if (memcmp(strLine.GetString() VER_WINSCRAPE strlen(VER_WINSCRAPE)) == 0)
loaded_version->Format(“%s“ VER_WINSCRAPE);
else if (memcmp(strLine.GetString() VER_OPENHOLDEM_1 strlen(VER_OPENHOLDEM_1)) == 0)
loaded_version->Format(“%s“ VER_OPENHOLDEM_1);
else if (memcmp(strLine.GetString() VER_OPENHOLDEM_2 strlen(VER_OP
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 890 2008-09-06 13:24 CCritSec\CCritSec.h
文件 32230 2009-06-12 04:24 CTablemap\CTablemap.cpp
文件 10644 2009-04-22 05:51 CTablemap\CTablemap.h
文件 36068 2009-03-04 02:52 CTransform\CTransform.cpp
文件 336 2008-06-21 00:07 CTransform\hash\lookup3.h
文件 7000 2008-08-15 00:15 CTransform\hash\stdint.h
文件 34327 2008-06-21 00:07 CTransform\hash\lookup3.cpp
文件 3352 2008-11-12 11:34 CTransform\CTransform.h
文件 4005 2008-08-30 11:36 CTransform\pdiff\RGBAImage.cpp
文件 2438 2008-06-21 00:07 CTransform\pdiff\LPyramid.cpp
文件 9134 2008-06-21 00:07 CTransform\pdiff\Metric.cpp
文件 2044 2008-06-21 00:07 CTransform\pdiff\RGBAImage.h
文件 3749 2008-06-21 00:07 CTransform\pdiff\CompareArgs.cpp
文件 1191 2008-06-21 00:07 CTransform\pdiff\LPyramid.h
文件 974 2008-06-21 00:07 CTransform\pdiff\Metric.h
文件 1565 2008-06-21 00:07 CTransform\pdiff\CompareArgs.h
文件 1061944 2008-08-27 04:18 dbghelp\dbghelp.dll
文件 48050 2008-08-27 04:18 dbghelp\dbghelp.lib
文件 126582 2008-08-27 04:18 dbghelp\dbghelp.h
文件 2419 2008-08-15 00:15 hscroll-list-box\HScrollListBox.h
文件 5577 2008-06-21 00:07 hscroll-list-box\HScrollListBox.cpp
文件 4334 2008-06-21 00:07 lib\PerlEz.lib
文件 334190 2008-06-21 00:07 lib\libpq.lib
文件 2947 2009-03-04 05:26 ManualMode\stdafx.h
文件 8949 2009-03-27 11:05 ManualMode\ManualMode.vcproj
文件 16811 2009-04-13 23:28 ManualMode\ManualMode.rc
文件 401 2008-06-21 00:07 ManualMode\res\ManualMode.rc2
文件 118078 2008-06-21 00:07 ManualMode\res\bmp2h5.bmp
文件 15086 2008-06-21 00:07 ManualMode\res\ManualMode.ico
文件 2163 2009-03-04 05:26 ManualMode\registry.cpp
............此处省略2113个文件信息
- 上一篇:时间序列预测模型
- 下一篇:ExtJS 4.1 中文版API帮助文档
相关资源
- LOL网吧特权连接工具源码.zip
- 品牌词库总.txt
- ProfessionalCMake_APracticalGuide.pdf
- 秒余额快捷马0.1完美版.rar
- 《go圣经》和《go语言》中文版.zip
- VM装XP傻白甜教程.pdf
- 微擎微赞模块钻石投票v5.50.8原版.ra
- InformationTheoryandNetworkCodingSpringer2008.
- liwenggg-10220834-最优化导论Solutions_Man
- 基于VC的包过滤防火墙论文源码有效地
- 网络攻击及防御技术.ppt
- smppapi-0.3.9.rar
- ex4_to_mq4_freeware(真正有用的破解程序
- EasyBuy.rar115487
-
new_one_ob
ject_9563362.zip - c本质论(第4版)源代码.tar
- 2.5.zip
- 微擎-万能表单7.0.1dayu_form修改版-201
- 小波与傅里叶分析基础(英文版)
- mcf6.rar
- 自动化专业英语教程翻译PART3.rar
- adb4.4.2.rar
- LifeChangerEA.zip
- windump.rar
- doc(9)
- 各种MQkafkathrift等rpc框架.zip
- NestProfessor套料软件加强版.zip
- easybuy.rar
- evernote2blog.zip
- count_24.rar
评论
共有 条评论