本文整理汇总了C++中CArrayFixFlat::Delete方法的典型用法代码示例。如果您正苦于以下问题:C++ CArrayFixFlat::Delete方法的具体用法?C++ CArrayFixFlat::Delete怎么用?C++ CArrayFixFlat::Delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CArrayFixFlat
的用法示例。
在下文中一共展示了CArrayFixFlat::Delete方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: StartGeneralL
/** This user-side method configures the passed ULogger session to output to the passed plugin (with configurations) and with filter settings as specified by the user
and starts the session in order to output trace points.
@param aLogger is ULogger session being passed to the routine to be configured and started
@param aPluginName is the TPtrC8 passed, identifying which ULogger plugin to output to
@param aPluginConfiguration is the TPluginConfiguration passed, indicating the hardware configurations for the specified plugin
@param aTestUTraceULoggerMatch is the user-defined boolean specifying whether the Ulogger filter settings should match the (test-specific) trace points or not
@return KErrNone if command was prepared correctly and a system wide error code otherwise.
*/
TInt CUptULogger::StartGeneralL(RULogger& aLogger, const TPtrC8& aPluginName, const TPluginConfiguration& aPluginConfiguration, const TBool& aGroupIdFiltering, const TBool& aComponentIdFiltering, const TBool& aGroupIdFilterMatch, const TBool& aComponentIdFilterMatch)
{
TInt err=0;
//connect to the ULogger session
err=aLogger.Connect();
if (err!=KErrNone)
{
for (TInt i=2; i<12;i++)
{
User::After(1000);
err = aLogger.Connect();
if (err==KErrNone)
{
break;
}
}
}
//clear any configurations stored in the ULogger configuration file
CClearConfig configIni;
configIni.ClearL(aLogger);
//prepare arrays for storing the filter settings to configure ULogger (and push any heap objects on the cleanup stack)
CArrayFixFlat<TUint8> *setPrimFilter = new (ELeave)CArrayFixFlat<TUint8>(256);
CleanupStack::PushL(setPrimFilter);
RArray<TUint32> setSecondFilter;
CleanupClosePushL(setSecondFilter);
//now configure the filtering and filter match options according to the passed parameters:
//aGroupIdFiltering aComponentIdFiltering aGroupIdFilterMatch aComponentIdFilterMatch
if(aGroupIdFiltering==1)
{
//We might have previously "disabled" primary filtering by enabling all filter
//values, we'll disable them all here initially and then enable what we want below
TInt i;
for (i=0;i<=255;i++)
{
setPrimFilter->AppendL((TUint8)i);
}
TInt err=aLogger.SetPrimaryFiltersEnabled(*setPrimFilter,EFalse);
setPrimFilter->Delete(0,setPrimFilter->Count());
}
//C.A. previously this but done by default:err=aLogger.EnableGroupIdFiltering();
else
//C.A. previously:err=aLogger.DisableClassificationFiltering();
//C.A.: just enable all classifications so all is allowed through
{
TInt i;
for (i=0;i<=255;i++)
{
setPrimFilter->AppendL((TUint8)i);
}
TInt err=aLogger.SetPrimaryFiltersEnabled(*setPrimFilter,ETrue);
setPrimFilter->Delete(0,setPrimFilter->Count());
}
err=aLogger.SetSecondaryFilteringEnabled(aComponentIdFiltering);
// C.A. previously
/* if(aComponentIdFiltering==1)
err=aLogger.EnableModuleUidFiltering();
else
err=aLogger.DisableModuleUidFiltering();*/
if(aGroupIdFilterMatch==1)
{
//if the user specifies that ULogger should have classifiaction filter settings which match the test trace points, then fill the filter arrays with the test trace point identifiers accordingly
SetFilterL(setPrimFilter);
}
else
{
//if the user specifies that ULogger should have classifciation filter settings which dont match the test trace points, then fill the filter arrays with the trace point identifiers which differ from the test trace point identifiers
setPrimFilter->AppendL((TGroupId)(KGroupId+1));
}
if(aComponentIdFilterMatch==1)
{
//if the user specifies that ULogger should have module id filter settings which match the test trace points, then fill the filter arrays with the test trace point identifiers accordingly
setSecondFilter.Append((TComponentId) KComponentId);
}
else
{
//if the user specifies that ULogger should have module id settings which dont match the test trace points, then fill the filter arrays with the trace point identifiers which differ from the test trace point identifiers
setSecondFilter.Append((TComponentId) (KComponentId+1));
}
//set the filter settings in ULogger according to the above defined filter arrays
err=aLogger.SetPrimaryFiltersEnabled(*setPrimFilter,ETrue);//C.A. previously:err=aLogger.EnableClassifications(*setPrimFilter);
if(err==0)
err=aLogger.SetSecondaryFiltersEnabled(setSecondFilter,ETrue);//C.A. previously:err=aLogger.EnableModuleUids(setSecondFilter);
//.........这里部分代码省略.........