45 lines
936 B
C++
45 lines
936 B
C++
#include "StdAfx.h"
|
|
#include ".\dbproxyscript.h"
|
|
#include "DBProxyInfo.h"
|
|
#include "InfoManager.h"
|
|
|
|
DBProxyScript::DBProxyScript(void)
|
|
{
|
|
}
|
|
|
|
DBProxyScript::~DBProxyScript(void)
|
|
{
|
|
}
|
|
|
|
|
|
BOOL DBProxyScript::Create( CString& strFilePath, _BaseInfo* pBaseInfo, WORLD_LIST& WorldList )
|
|
{
|
|
if( !MakeScriptFile( strFilePath ) )
|
|
return FALSE;
|
|
|
|
CreateContents();
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
|
|
void DBProxyScript::CreateContents()
|
|
{
|
|
CString strMsg, strTemp;
|
|
DBProxyInfo* pInfo = (DBProxyInfo*)ServerInfoManager::GetInstance()->GetServerInfo( GetServerType() );
|
|
if( !pInfo ) return;
|
|
|
|
_ATTRIBUTES* pAttrInfo = pInfo->GetAttributes();
|
|
if( !pAttrInfo ) return;
|
|
|
|
strTemp = "[ATTRIBUTES]\r\n";
|
|
strMsg += strTemp;
|
|
strTemp.Format( "SERIAL_INTERVAL_SIZE = %d \r\n", pAttrInfo->m_wSerialInterval );
|
|
strMsg += strTemp;
|
|
strTemp.Format( "QUERY_POOL_SIZE = %d \r\n", pAttrInfo->m_wQueryPool );
|
|
strMsg += strTemp;
|
|
strMsg += "\r\n";
|
|
|
|
WriteMessge( strMsg );
|
|
}
|