本文整理汇总了C++中Series::getAsHex方法的典型用法代码示例。如果您正苦于以下问题:C++ Series::getAsHex方法的具体用法?C++ Series::getAsHex怎么用?C++ Series::getAsHex使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Series
的用法示例。
在下文中一共展示了Series::getAsHex方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: decodeEnumTypeDictionary
void DataDictionaryImpl::decodeEnumTypeDictionary(const Series& series, UInt32 verbosity)
{
if (_ownRsslDataDictionary)
{
RsslBuffer rsslBuffer;
rsslBuffer.data = (char *)series.getAsHex().c_buf();
rsslBuffer.length = series.getAsHex().length();
RsslDecodeIterator rsslDecodeIterator;
rsslClearDecodeIterator(&rsslDecodeIterator);
RsslRet ret;
if ((ret = rsslSetDecodeIteratorBuffer(&rsslDecodeIterator, &rsslBuffer)) != RSSL_RET_SUCCESS)
{
throwIueException("Failed to set decode iterator buffer in DataDictionaryImpl::decodeEnumTypeDictionary()");
}
if ((ret = rsslSetDecodeIteratorRWFVersion(&rsslDecodeIterator, RSSL_RWF_MAJOR_VERSION, RSSL_RWF_MINOR_VERSION)) != RSSL_RET_SUCCESS)
{
throwIueException("Failed to set decode iterator RWF version in DataDictionaryImpl::decodeEnumTypeDictionary()");
}
if (rsslDecodeEnumTypeDictionary(&rsslDecodeIterator, _pRsslDataDictionary, (RDMDictionaryVerbosityValues)verbosity, &_errorText) < 0)
{
EmaString errorText("Failed to decode the enumerated types dictionary");
errorText.append(CR).append("Reason='").append(_errorText.data).append("'");
throwIueException(errorText);
}
_loadedEnumTypeDef = true;
}
else
{
throwIueForQueryOnly();
}
}