本文整理汇总了C++中NameValueCollection::getData方法的典型用法代码示例。如果您正苦于以下问题:C++ NameValueCollection::getData方法的具体用法?C++ NameValueCollection::getData怎么用?C++ NameValueCollection::getData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NameValueCollection
的用法示例。
在下文中一共展示了NameValueCollection::getData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: validateProperties
/// private methods implementation
void BatchFilter::validateProperties( NameValueCollection& transportHeaders )
{
if ( !m_Properties.ContainsKey( BatchFilter::BatchFILE ) )
throw invalid_argument( "Required parameter missing : BatchFILE" );
//Set Parameters for BatchFile
int xlstParamsCount = transportHeaders.getCount();
if ( xlstParamsCount > 0 )
{
DEBUG( "The Batch has " << xlstParamsCount << " parameters." );
vector< DictionaryEntry > params = transportHeaders.getData();
for( int i = 0; i < xlstParamsCount; i++ )
{
if ( StringUtil::StartsWith( params[i].first, BatchFilter::BatchPARAM ) )
{
DEBUG( "Filter param [" << params[i].first << "] value is [" << params[i].second << "]" );
getTransformer()->setStylesheetParam( params[i].first.data(), params[i].second.data() );
}
else if ( ( params[i].first == BatchFilter::BatchUSEEXT ) && !m_ExtensionsInstalled )
{
DEBUG( "Using extension functions from http://extensions.bisnet.ro" );
const XalanDOMString theNamespace( "http://extensions.bisnet.ro" );
getTransformer()->installExternalFunction( theNamespace, XalanDOMString( "replace" ), FunctionReplace() );
getTransformer()->installExternalFunction( theNamespace, XalanDOMString( "fill" ), FunctionFill() );
m_ExtensionsInstalled = true;
}
}
}
else
DEBUG( "The Batch doesn't have parameters" );
}