• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ BOOST_LOG_FUNCTION函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中BOOST_LOG_FUNCTION函数的典型用法代码示例。如果您正苦于以下问题:C++ BOOST_LOG_FUNCTION函数的具体用法?C++ BOOST_LOG_FUNCTION怎么用?C++ BOOST_LOG_FUNCTION使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了BOOST_LOG_FUNCTION函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: BOOST_LOG_FUNCTION

void  SQLCode::_BuildNormalSQL(const SQLVarParms& varParms, SQLStatement& rSQLFormats, SQLStatement& rSqlStatement)
{
	BOOST_LOG_FUNCTION();

	if (!rSQLFormats.strCommonSQL.empty())
	{
		_BuildSQL(varParms, rSQLFormats.strCommonSQL, rSqlStatement.strCommonSQL);
	}
	else
	{
		if (rSQLFormats.strOracleSQL.empty() 
			|| rSQLFormats.strMySQLSQL.empty() 
			|| rSQLFormats.strSQLiteSQL.empty())
		{
			throw DataAccessException(ER_DB_ERR_SQLCode, "The MySQL or Oracle SQL or SQLite Format is empty");
		}
		
		// build Oracle SQL Statement
		_BuildSQL(varParms, rSQLFormats.strOracleSQL, rSqlStatement.strOracleSQL, enumOracleDb);

		// build MySQL SQL statement
		_BuildSQL(varParms, rSQLFormats.strMySQLSQL, rSqlStatement.strMySQLSQL, enumMysqlDb);

		// build SqliteDb SQL Statement
		_BuildSQL(varParms, rSQLFormats.strSQLiteSQL, rSqlStatement.strSQLiteSQL, enumSqliteDb);
	}	

}
开发者ID:lslProjectOrg,项目名称:Projects,代码行数:28,代码来源:SQLCode.cpp


示例2: BOOST_LOG_FUNCTION

CInstrumentTickInfo& CInstrumentTickInfo::operator=(const CInstrumentTickInfo& instrumentTickInfo )
{
	BOOST_LOG_FUNCTION();
	m_TickInfo = instrumentTickInfo.m_TickInfo;

	return *this;
}
开发者ID:lslProjectOrg,项目名称:Projects,代码行数:7,代码来源:InstrumentTickInfo.cpp


示例3: BOOST_LOG_FUNCTION

//"%04d-%02d-%02d %02d:%02d:%02d"
std::string CCFDServerUtilityFun::dataTimeToStr(time_t nTimeValue)
{
	BOOST_LOG_FUNCTION();
	std::string	strTimeString;
	char* pszCurTime = NULL;
	int nBufferSize = 256;
	struct tm* pTM = NULL;
	time_t time_Value = (time_t)nTimeValue;

	pszCurTime =new char[nBufferSize];
	memset(pszCurTime, 0, nBufferSize);

	pTM = localtime(&(time_Value));

	//TIMESTR--%Y%m%d%H%M%S
	//format to string
	if ( NULL != pTM )
	{
		sprintf(pszCurTime, "%04d-%02d-%02d %02d:%02d:%02d",
			pTM->tm_year + 1900, pTM->tm_mon + 1, pTM->tm_mday,
			pTM->tm_hour, pTM->tm_min, pTM->tm_sec); 
		strTimeString = pszCurTime;     
	}

	delete pszCurTime;
	pszCurTime = NULL;
	pTM = NULL;

	return strTimeString;
}
开发者ID:lslProjectOrg,项目名称:Projects,代码行数:31,代码来源:CFDServerUtilityFun.cpp


示例4: BOOST_LOG_FUNCTION

void CMarketDataFileManager::setInstrumentBarInfoRequest( const CInstrumentBarInfoRequest& instrumentBarInfoRequest )
{
	BOOST_LOG_FUNCTION();
	m_InstrumentBarInfoRequest = instrumentBarInfoRequest;
	setAnalieType(AnalierType_Dispatch_MarkketData);

}
开发者ID:lslProjectOrg,项目名称:Projects,代码行数:7,代码来源:MarketDataFileManager.cpp


示例5: BOOST_LOG_FUNCTION

int CServerManager::_InitServer()
{
	BOOST_LOG_FUNCTION();
	int nFunRes = 0;

	if (g_string_strServerAddress.empty())
	{
		LOG_ERROR<<"error! g_string_strServerAddress="<<g_string_strServerAddress;
		nFunRes = -1;
		return nFunRes;
	}

	{
		boost::mutex::scoped_lock lock(m_mutexBrokerServer);
		m_brokerServer.onConnected = boost::bind(&TA_Base_App::CServerManager::handleConnected, this, _1);//static boost::arg<1> _1;
		m_brokerServer.onDisconnected = boost::bind(&TA_Base_App::CServerManager::handleDisconnected, this, _1);//static boost::arg<1> _1;
		m_brokerServer.onReceived = boost::bind(&TA_Base_App::CServerManager::handleReceivedMessage, this, _1);//static boost::arg<1> _1;
		m_brokerServer.onDeliverFailure = boost::bind(&TA_Base_App::CServerManager::handleDeliverFailure, this, _1);//static boost::arg<1> _1;

		LOG_DEBUG<< "begin listen g_string_strServerAddress="<<g_string_strServerAddress;
		m_brokerServer.listen(g_string_strServerAddress);
	}



	return nFunRes;
}
开发者ID:lslProjectOrg,项目名称:Projects,代码行数:27,代码来源:ServerManager.cpp


示例6: BOOST_LOG_FUNCTION

void CConfigInfoHelper::_GetConifgFileInfo()
{
	BOOST_LOG_FUNCTION();

	CFileSystemItem::LstLineT  lstLine;
	CFileSystemItem::LstLineIterT  iterLst;

	m_pConfigFileInfo->getAllLinesInFile(lstLine);

	iterLst = lstLine.begin();
	while (iterLst != lstLine.end())
	{
		std::string strLineTmp = *iterLst;
		std::string strParamKey;

		CParamItem* pParamItem = new CParamItem(strLineTmp);
		strParamKey = pParamItem->getParamKey();
		m_MapParamKeyParamItem.insert(MapParamKeyParamItemValueTypeT(strParamKey, pParamItem));
		pParamItem = NULL;

		iterLst++;
	}//while


	lstLine.clear();

	return;
}
开发者ID:shenglonglinapple,项目名称:slin_code,代码行数:28,代码来源:ConfigInfoHelper.cpp


示例7: BOOST_LOG_FUNCTION

void CConfigInfo::logInfo()
{
	BOOST_LOG_FUNCTION();

	LOG_INFO<<"CConfigInfo::logInfo"
		<<" "<<"m_strValue_ConfigFileName="<<m_strValue_ConfigFileName
		<<" "<<"m_strValue_HistoryDataDirectory="<<m_strValue_HistoryDataDirectory
		<<" "<<"m_strValue_SaveDataDirectoryBAR="<<m_strValue_SaveDataDirectoryBAR
		<<" "<<"m_strValue_SaveDataDirectoryTIK="<<m_strValue_SaveDataDirectoryTIK
		<<" "<<"m_strValue_DbType="<<m_strValue_DbType
		<<" "<<"m_strValue_StartTime_InDB="<<m_strValue_StartTime_InDB
		<<" "<<"m_strValue_StartTime_InFile="<<m_strValue_StartTime_InFile
		<<" "<<"m_strValue_LoadMaxFilesSize="<<m_strValue_LoadMaxFilesSize
		<<" "<<"m_strValue_AutoRun="<<m_strValue_AutoRun
		<<" "<<"m_strValue_AutoRunTime="<<m_strValue_AutoRunTime;

	LOG_INFO<<"CConfigInfo::logInfo"
		<<" "<<"m_nValue_DbType="<<m_nValue_DbType
		<<" "<<"m_nValue_StartTime="<<m_nValue_StartTime
		<<" "<<"m_nValue_LoadMaxFilesSize="<<m_nValue_LoadMaxFilesSize
		<<" "<<"m_nValue_AutoRun="<<m_nValue_AutoRun;

	m_pSQLiteConfigFileOperParam->logInfo();

	return;
}
开发者ID:shenglonglinapple,项目名称:slin_code,代码行数:26,代码来源:ConfigInfo.cpp


示例8: BOOST_LOG_FUNCTION

int CSqliteDbOper::_CreateDBTableTick()
{
	BOOST_LOG_FUNCTION();
	int nFunRes = 0;
	bool bExecRes = true;
	std::string strSQL;

	QSqlQuery* pSqlQuery = NULL;
	pSqlQuery = new QSqlQuery(*m_pQSqlDataBaseTIK);

	strSQL = _BuildSQLForCreateDBTableTick();

	LOG_DEBUG<<"exec strSQL="<<strSQL;
	bExecRes = pSqlQuery->exec(strSQL.c_str());
	if (!bExecRes)
	{
		nFunRes = -1;
		LOG_ERROR<<"Fail to exec sql:"<<strSQL<<" error:"<<pSqlQuery->lastError().text().toStdString();
	}

	if (NULL != pSqlQuery)
	{
		delete pSqlQuery;
		pSqlQuery = NULL;
	}

	return nFunRes;
}
开发者ID:shenglonglinapple,项目名称:slin_code,代码行数:28,代码来源:SqliteDbOper.cpp


示例9: BOOST_LOG_FUNCTION

int CFileSystemManager::removeOldFile(time_t nStarTime, MapTimeFileSystemItemT& mapTimeFileSystemItem )
{
	BOOST_LOG_FUNCTION();
	int nFunRes = 0;
	MapTimeFileSystemItemIterT iterMap;
	time_t nFileTime;
	CFileSystemItem* pFileSystemItem = NULL;

	iterMap = mapTimeFileSystemItem.begin();
	
	while (iterMap != mapTimeFileSystemItem.end())
	{
		nFileTime = iterMap->first;
		pFileSystemItem = iterMap->second;

		if (nFileTime <= nStarTime)
		{
			delete pFileSystemItem;
			pFileSystemItem = NULL;

			mapTimeFileSystemItem.erase(iterMap);
			iterMap = mapTimeFileSystemItem.begin();
		}
		else
		{
			iterMap++;
		}

	}

	return nFunRes;
}
开发者ID:lslProjectOrg,项目名称:Projects,代码行数:32,代码来源:FileSystemManager.cpp


示例10: BOOST_LOG_FUNCTION

CMarketDataFileAnalier::CMarketDataFileAnalier(void)
{
	BOOST_LOG_FUNCTION();
	m_pUtilityFun = new CCFDServerUtilityFun();
	m_pMarketDataDispatcher = new CMarketDataDispatcher();

}
开发者ID:shenglonglinapple,项目名称:slin_code,代码行数:7,代码来源:MarketDataFileAnalier.cpp


示例11: BOOST_LOG_FUNCTION

int CSyncMarketDataForCFD::_SyncLstCFDBarInfo(LstBarInfoT& lstBarInfoFirst, LstBarInfoT& lstBarInfoSecond, LstCFDBarInfoT& lstCFDBarInfo)
{
	BOOST_LOG_FUNCTION();
	int nFunRes = 0;

	LstBarInfoIterT iterLstFirst;
	LstBarInfoIterT iterLstSecond;
	MarketData* pBarFirst = NULL;
	MarketData* pBarSecond = NULL;
	CCFDInstrumentBarInfo* pCFDInstrumentBarInfoTmp = NULL;

	if (lstBarInfoFirst.size() != lstBarInfoSecond.size())
	{
		LOG_ERROR<<"_SyncLstCFDBarInfo size error!"
			<<" "<<"lstBarInfoFirst.size()="<<lstBarInfoFirst.size()
			<<" "<<"lstBarInfoSecond.size()="<<lstBarInfoSecond.size();
		nFunRes = -1;
		return nFunRes;
	}

	iterLstFirst = lstBarInfoFirst.begin();
	iterLstSecond = lstBarInfoSecond.begin();

	while (
		(iterLstFirst != lstBarInfoFirst.end())
		&& (iterLstSecond != lstBarInfoSecond.end())
		)
	{
		pBarFirst = NULL;
		pBarSecond = NULL;
		pBarFirst = (*iterLstFirst);
		pBarSecond = (*iterLstSecond);

		pCFDInstrumentBarInfoTmp =new CCFDInstrumentBarInfo(m_CFDRequest);

		pCFDInstrumentBarInfoTmp->setCFDRequest(m_CFDRequest);
		pCFDInstrumentBarInfoTmp->setBarInfoFirst(*pBarFirst);
		pCFDInstrumentBarInfoTmp->setBarInfoSecond(*pBarSecond);
		nFunRes = pCFDInstrumentBarInfoTmp->buidCFDBarInfo();
		if (0 != nFunRes)
		{
			LOG_ERROR<<"buildCFDMarketData DataFirst.Time != DataSecond.Time"
				<<" ["<<"DataFirst.Time="<<m_pUtilityFun->dataTimeToStr(pBarFirst->getTime())<<"]"
				<<" ["<<"DataSecond.Time="<<m_pUtilityFun->dataTimeToStr(pBarSecond->getTime())<<"]"; 
		}
		else
		{
			pCFDInstrumentBarInfoTmp->logInfo();
		}


		lstCFDBarInfo.push_back(pCFDInstrumentBarInfoTmp);
		pCFDInstrumentBarInfoTmp = NULL;

		iterLstFirst++;
		iterLstSecond++;
	}//while

	return nFunRes;
}
开发者ID:shenglonglinapple,项目名称:slin_code,代码行数:60,代码来源:SyncMarketDataForCFD.cpp


示例12: main

int main( int argc, char* argv[] )
{
	TA_Base_Test::CBoostLogger BoostLogger;
	BOOST_LOG_FUNCTION();


	TA_Base_Test::CTestCase* pTestCase = new TA_Base_Test::CTestCase();

	if (1 == g_runAsServer)
	{
		pTestCase->runTestCase_ForServer();
	}
	else
	{
		pTestCase->runTestCase_ForClient();
	}
	//

	//sleep
	{	
		boost::mutex::scoped_lock lock(g_mutexMainRun);
		g_conditionMainRun.wait(lock);
	}

	delete pTestCase;
	pTestCase = NULL;


	return 0;
}
开发者ID:lslProjectOrg,项目名称:Projects,代码行数:30,代码来源:main.cpp


示例13: BOOST_LOG_FUNCTION

CInstrumentBarInfo& CInstrumentBarInfo::operator=(const CInstrumentBarInfo& instrumentBarInfo )
{
	BOOST_LOG_FUNCTION();
	m_nInterval = instrumentBarInfo.m_nInterval;
	m_BarInfo = instrumentBarInfo.m_BarInfo;
	return *this;
}
开发者ID:shenglonglinapple,项目名称:slin_code,代码行数:7,代码来源:InstrumentBarInfo.cpp


示例14: BOOST_LOG_FUNCTION

CZmqREQServerThread::CZmqREQServerThread(void)
{	
	BOOST_LOG_FUNCTION();	
	m_toTerminate = false;
	m_nThreadJobState = JobState_Begin;

}
开发者ID:shenglonglinapple,项目名称:slin_code,代码行数:7,代码来源:ZmqREQServerThread.cpp


示例15: BOOST_LOG_FUNCTION

CInstrumentBarInfoRequest& CInstrumentBarInfoRequest::operator=(const CInstrumentBarInfoRequest& instrumentBarInfoRequest )
{
	BOOST_LOG_FUNCTION();
	m_strCurrentAnalierFileName = instrumentBarInfoRequest.m_strCurrentAnalierFileName;
	m_strHistoryMarketDataTotal = instrumentBarInfoRequest.m_strHistoryMarketDataTotal;
	m_strInstrumetBarInfoTotal = instrumentBarInfoRequest.m_strInstrumetBarInfoTotal;
	_AddBarTimeNormal();
	return *this;
}
开发者ID:shenglonglinapple,项目名称:slin_code,代码行数:9,代码来源:InstrumentBarInfoRequest.cpp


示例16: BOOST_LOG_FUNCTION

CConfigInfo::CConfigInfo(void)
{
	BOOST_LOG_FUNCTION();
	m_strConfigFileName.clear();


	m_strConfigFileName = DEF_VALUE_strConfigFileName;
	loadDefaultConfigInfo();
}
开发者ID:shenglonglinapple,项目名称:slin_code,代码行数:9,代码来源:ConfigInfo.cpp


示例17: BOOST_LOG_FUNCTION

CTOSReqEndTestFrame::CTOSReqEndTestFrame(void)
{
	BOOST_LOG_FUNCTION();

	m_nFrameType_SampleValue = C_TO_S_REQ_END_TEST;
	m_strReqInfo_SampleValue = "client want to end Test!";

	setSampleValue();
}
开发者ID:shenglonglinapple,项目名称:slin_code,代码行数:9,代码来源:CTOSReqEndTestFrame.cpp


示例18: BOOST_LOG_FUNCTION

STOCAckBeginTestFrame::STOCAckBeginTestFrame(void)
{
	BOOST_LOG_FUNCTION();

	m_nFrameType_SampleValue = S_TO_C_ACK_BEGIN_TEST;
	m_strACKInfo_SampleValue = "Server is ready, you can begin to do Test Now!";

	setSampleValue();
}
开发者ID:shenglonglinapple,项目名称:slin_code,代码行数:9,代码来源:STOCAckBeginTestFrame.cpp



注:本文中的BOOST_LOG_FUNCTION函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ BOOST_LOG_SEV函数代码示例发布时间:2022-05-30
下一篇:
C++ BOOST_HANA_CONSTANT_CHECK函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap