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


C++ LLXMLRPCValue::getValue方法代码示例

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


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

示例1: startTransaction

void LLFloaterBuyLandUI::startTransaction(TransactionType type, const LLXMLRPCValue& params)
{
	mTransactionType = type;

	// Select a URI and method appropriate for the transaction type.
	static std::string transaction_uri;
	if (transaction_uri.empty())
	{
		transaction_uri = LLViewerLogin::getInstance()->getHelperURI() + "landtool.php";
	}
	
	const char* method;
	switch (mTransactionType)
	{
		case TransactionPreflight:
			method = "preflightBuyLandPrep";
			break;
		case TransactionBuy:
			method = "buyLandPrep";
			break;
		default:
			llwarns << "LLFloaterBuyLandUI: Unknown transaction type!" << llendl;
			return;
	}

	mResponder = new XMLRPCResponder;
	LLHTTPClient::postXMLRPC(transaction_uri, method, params.getValue(), mResponder);
}
开发者ID:Nekrofage,项目名称:SingularityViewer,代码行数:28,代码来源:llfloaterbuyland.cpp

示例2: mCurlEasyRequestStateMachinePtr

LLXMLRPCTransaction::Impl::Impl(const std::string& uri,
		const std::string& method, LLXMLRPCValue params, bool useGzip)
	: mCurlEasyRequestStateMachinePtr(NULL),
	  mStatus(LLXMLRPCTransaction::StatusNotStarted),
	  mURI(uri),
	  mResponse(0)
{
	XMLRPC_REQUEST request = XMLRPC_RequestNew();
	XMLRPC_RequestSetMethodName(request, method.c_str());
	XMLRPC_RequestSetRequestType(request, xmlrpc_request_call);
	XMLRPC_RequestSetData(request, params.getValue());
	
	init(request, useGzip);
}
开发者ID:samiam123,项目名称:VoodooNxg,代码行数:14,代码来源:llxmlrpctransaction.cpp

示例3:

void LLCurrencyUIManager::Impl::startTransaction(TransactionType type,
		const char* method, LLXMLRPCValue params)
{
	static std::string transactionURI;
	if (transactionURI.empty())
	{
		transactionURI = LLViewerLogin::getInstance()->getHelperURI() + "currency.php";
	}

	mTransactionType = type;
	mResponder = new XMLRPCResponder;
	LLHTTPClient::postXMLRPC(transactionURI, method, params.getValue(), mResponder);

	clearError();
}
开发者ID:Nekrofage,项目名称:SingularityViewer,代码行数:15,代码来源:llcurrencyuimanager.cpp

示例4: mCurlRequest

LLXMLRPCTransaction::Impl::Impl(const std::string& uri,
		const std::string& method, LLXMLRPCValue params, bool useGzip)
	: mCurlRequest(0),
	  mStatus(LLXMLRPCTransaction::StatusNotStarted),
	  mURI(uri),
	  mRequestText(0), 
	  mResponse(0)
{
	XMLRPC_REQUEST request = XMLRPC_RequestNew();
	XMLRPC_RequestSetMethodName(request, method.c_str());
	XMLRPC_RequestSetRequestType(request, xmlrpc_request_call);
	XMLRPC_RequestSetData(request, params.getValue());
	
	init(request, useGzip);
    // DEV-28398: without this XMLRPC_RequestFree() call, it looks as though
    // the 'request' object is simply leaked. It's less clear to me whether we
    // should also ask to free request value data (second param 1), since the
    // data come from 'params'.
    XMLRPC_RequestFree(request, 1);
}
开发者ID:OS-Development,项目名称:VW.Dolphin_v3,代码行数:20,代码来源:llxmlrpctransaction.cpp


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