当前位置: 首页>>代码示例>>C++>>正文


C++ OT_API类代码示例

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


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

示例1: OT_API_processSockets

// Not necessary in HTTP mode. 
// (Request/Response; no need to check sockets periodically in that mode.)
// If you use TCP/SSL mode, you have to call this in order to check for
// server replies and process them.
OT_BOOL OT_API_processSockets(void) 
{
	bool bProcess = g_OT_API.processSockets();
	
	if (bProcess)
		return OT_TRUE;
	
	return OT_FALSE;
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:13,代码来源:OTAPI.cpp

示例2: OT_API_getRequest

void OT_API_getRequest(const char * SERVER_ID,
					   const char * USER_ID)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	
	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID);

	g_OT_API.getRequest(theServerID, theUserID);
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:10,代码来源:OTAPI.cpp

示例3: OT_API_createUserAccount

void OT_API_createUserAccount(const char * SERVER_ID,
							  const char * USER_ID)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	
	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID);

	g_OT_API.createUserAccount(theServerID, theUserID);
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:10,代码来源:OTAPI.cpp

示例4: OT_API_checkServerID

void OT_API_checkServerID(const char * SERVER_ID,
						  const char * USER_ID)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	
	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID);

	g_OT_API.checkServerID(theServerID, theUserID);
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:10,代码来源:OTAPI.cpp

示例5: OT_API_getTransactionNumber

void OT_API_getTransactionNumber(const char * SERVER_ID,
								 const char * USER_ID)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	
	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID);

	
	g_OT_API.getTransactionNumber(theServerID, theUserID);
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:11,代码来源:OTAPI.cpp

示例6: OT_API_getMint

void OT_API_getMint(const char * SERVER_ID,
					const char * USER_ID,
					const char * ASSET_ID)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	OT_ASSERT(NULL != ASSET_ID);

	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID), theAssetID(ASSET_ID);

	g_OT_API.getMint(theServerID, theUserID, theAssetID);
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:12,代码来源:OTAPI.cpp

示例7: OT_API_getInbox

void OT_API_getInbox(const char * SERVER_ID,
					 const char * USER_ID,
					 const char * ACCT_ID)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	OT_ASSERT(NULL != ACCT_ID);
	
	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID), theAcctID(ACCT_ID);

	g_OT_API.getInbox(theServerID, theUserID, theAcctID);
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:12,代码来源:OTAPI.cpp

示例8: OT_API_loadWallet

OT_BOOL OT_API_loadWallet(const char * szPath)
{
	OT_ASSERT(NULL != szPath);

	OTString strPath(szPath);
	
	bool bLoaded = g_OT_API.loadWallet(strPath);
	
	if (bLoaded)
		return OT_TRUE;
	
	return OT_FALSE;
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:13,代码来源:OTAPI.cpp

示例9: OT_API_issueBasket

void OT_API_issueBasket(const char * SERVER_ID,
						const char * USER_ID,
						const char * BASKET_INFO)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	OT_ASSERT(NULL != BASKET_INFO);
	
	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID);
	
	OTString strBasketInfo(BASKET_INFO);

	g_OT_API.issueBasket(theServerID, theUserID, strBasketInfo);
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:14,代码来源:OTAPI.cpp

示例10: OT_API_issueAssetType

void OT_API_issueAssetType(const char *	SERVER_ID,
						   const char *	USER_ID,
						   const char *	THE_CONTRACT)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	OT_ASSERT(NULL != THE_CONTRACT);
	
	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID);
	
	OTString strContract(THE_CONTRACT);

	g_OT_API.issueAssetType(theServerID, theUserID, strContract);
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:14,代码来源:OTAPI.cpp

示例11: OT_API_notarizeDeposit

void OT_API_notarizeDeposit(const char * SERVER_ID,
							const char * USER_ID,
							const char * ACCT_ID,
							const char * THE_PURSE)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	OT_ASSERT(NULL != ACCT_ID);
	OT_ASSERT(NULL != THE_PURSE);

	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID), theAcctID(ACCT_ID);
	OTString strPurse(THE_PURSE);

	g_OT_API.notarizeDeposit(theServerID, theUserID, theAcctID, strPurse);
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:15,代码来源:OTAPI.cpp

示例12: OT_API_processInbox

void OT_API_processInbox(const char * SERVER_ID,
						 const char * USER_ID,
						 const char * ACCT_ID,
						 const char * ACCT_LEDGER)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	OT_ASSERT(NULL != ACCT_ID);
	OT_ASSERT(NULL != ACCT_LEDGER);

	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID), theAcctID(ACCT_ID);
	OTString strLedger(ACCT_LEDGER);

	g_OT_API.processInbox(theServerID, theUserID, theAcctID, strLedger);
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:15,代码来源:OTAPI.cpp

示例13: OT_API_depositCheque

void OT_API_depositCheque(const char * SERVER_ID,
						  const char * USER_ID,
						  const char * ACCT_ID,
						  const char * THE_CHEQUE)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	OT_ASSERT(NULL != ACCT_ID);
	OT_ASSERT(NULL != THE_CHEQUE);
	
	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID), theAcctID(ACCT_ID);
	OTString strCheque(THE_CHEQUE);
	
	g_OT_API.depositCheque(theServerID, theUserID, theAcctID, strCheque);
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:15,代码来源:OTAPI.cpp

示例14: OT_API_notarizeWithdrawal

void OT_API_notarizeWithdrawal(const char * SERVER_ID,
							   const char * USER_ID,
							   const char * ACCT_ID,
							   const char * AMOUNT)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	OT_ASSERT(NULL != ACCT_ID);
	OT_ASSERT(NULL != AMOUNT);

	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID), theAcctID(ACCT_ID);

	OTString strAmount(AMOUNT);
	
	g_OT_API.notarizeWithdrawal(theServerID, theUserID, theAcctID, strAmount);
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:16,代码来源:OTAPI.cpp

示例15: OT_API_getAssetType

OT_BOOL OT_API_getAssetType(int iIndex, const char * THE_ID, const char * THE_NAME)
{
	OT_ASSERT(NULL != THE_ID);
	OT_ASSERT(NULL != THE_NAME);
	OT_ASSERT(iIndex > 0);

	OTIdentifier	theID(THE_ID);
	OTString		strName(THE_NAME);

	bool bGetAssetType = g_OT_API.getAssetType(iIndex, theID, strName);
	
	if (bGetAssetType)
		return OT_TRUE;
	
	return OT_FALSE;
}
开发者ID:webr3,项目名称:Open-Transactions,代码行数:16,代码来源:OTAPI.cpp


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