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


C++ TBuf::AppendFormatList方法代码示例

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


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

示例1: LogList

void CSheduleServerLog::LogList(TRefByValue<const TDesC> aFmt, VA_LIST aList)
	{
	TBuf<1024> buf;
	buf.AppendFormatList(aFmt, aList);
	WriteWithTimeStamp(buf);
	NewLine();
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:7,代码来源:SSCH_UTL.CPP

示例2:

void CMainControlEngine::WriteLog16(TRefByValue<const TDesC> aFmt, ...)
{
#ifdef __WRITE_LOG__
	//UtilityTools::WriteLogsL(_L("WriteLog16"));
	TBuf<400> tBuf;
	VA_LIST	list;
	VA_START(list,aFmt);
	tBuf.Zero();
	tBuf.AppendFormatList(aFmt,list);
	VA_END(list);

	HBufC8* buf=CnvUtfConverter::ConvertFromUnicodeToUtf8L(tBuf);
	ASSERT(buf);
	CleanupStack::PushL(buf);

	TBuf<64>	time16;
	TBuf8<64>	time8;
	TTime	tTime;
	tTime.HomeTime();
	tTime.FormatL(time16, _L("%D%M%Y%2/%3 %H:%T:%S "));
	time8.Copy(time16);

	iFile.Write(time8);
	iFile.Write(*buf);
	iFile.Write(_L8("\x0a\x0d"));
	CleanupStack::PopAndDestroy(1);
	//UtilityTools::WriteLogsL(_L("WriteLog16 End"));
#endif
}
开发者ID:flaithbheartaigh,项目名称:wapbrowser,代码行数:29,代码来源:MainControlEngine.cpp

示例3: Printf

void CBtraceReader::Printf(TRefByValue<const TDesC> aFmt, ...)
{
    TOverflowTruncate overflow;
    VA_LIST list;
    VA_START(list, aFmt);
    TBuf<0x100> buf;
    buf.AppendFormatList(aFmt, list, &overflow);
    iCommand.Stdout().Write(buf);
}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:9,代码来源:memsampler.cpp

示例4:

void CTestStepC32Util::Log(TRefByValue<const TDesC16> aFormat, ...)
	{
    VA_LIST vaList;
	VA_START( vaList, aFormat );

	TTruncateOverflow16 truncateOverflow;
	TBuf<512> buf;
	buf.AppendFormatList( aFormat, vaList, &truncateOverflow );
	Logger().Write(buf);
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:10,代码来源:te_c32utilsteps.cpp

示例5: Log

void CSheduleServerLog::Log(TRefByValue<const TDesC> aFmt,...)
	{
	VA_LIST list;
	VA_START(list, aFmt);

	TBuf<1024> buf;
	buf.AppendFormatList(aFmt, list);
	WriteWithTimeStamp(buf);
	NewLine();
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:10,代码来源:SSCH_UTL.CPP

示例6: FailL

void CHuiFxEffectParser::FailL(TInt aCode, TRefByValue<const TDesC> aFormat, ...)
    {
    TBuf<512> message;
    VA_LIST args;
    VA_START(args, aFormat);
    message.Append(_L("CHuiFxEffectParser::Fail(): "));
    message.AppendFormatList(aFormat, args);
    VA_END(args);
    __ALFFXLOGSTRING1("CHuiFxEffectParser::FailL %S", &message);
    User::InfoPrint( message );
    User::Leave(aCode);
    }
开发者ID:cdaffara,项目名称:symbiandump-mw4,代码行数:12,代码来源:HuiFxEffectParser.cpp

示例7: Printf

/**
Prints characters to the console window.

@param aFmt             The  non-modifiable descriptor containing the
                        format string. The TRefByValue class provides a
                        constructor which takes a TDesC type. 

@param ...              A variable number of arguments to be converted to text
                        as dictated by the format string. 
*/
EXPORT_C void CConsoleBase::Printf(TRefByValue<const TDesC> aFmt,...)
	{

	TestOverflowTruncate overflow;
	// coverity[var_decl]
	VA_LIST list;
	VA_START(list,aFmt);
	TBuf<0x100> aBuf;
	// coverity[uninit_use_in_call]
	TRAP_IGNORE(aBuf.AppendFormatList(aFmt,list,&overflow)); // ignore leave in TTimeOverflowLeave::Overflow()
	Write(aBuf);
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:22,代码来源:ub_cons.cpp

示例8: Log

void CTestStepESockUtil::Log(TRefByValue<const TDesC16> aFormat, ...)
	{
    VA_LIST vaList;
	VA_START( vaList, aFormat );

	TTruncateOverflow16 truncateOverflow;
	TBuf<512> buf;
	buf.AppendFormatList( aFormat, vaList, &truncateOverflow );

	// write to the console
	CTestStep::Log(_L("%S"), &buf);
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:12,代码来源:ts_esockutilsteps.cpp

示例9: LogIt

EXPORT_C void CIpuTestHarness::LogIt(TRefByValue<const TDesC> aFmt, ...)
//
//	Messages to the front end emulator and to the Inu log
	{
	VA_LIST list;
	VA_START(list,aFmt);

	TBuf<KMaxFileName + 4> buf;
	buf.Append(KTestCommentPrepend);
	buf.AppendFormatList(aFmt,list);
	VA_END(list);

	WriteComment(buf);
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:14,代码来源:IpuTestHarness.cpp

示例10: LogIt

EXPORT_C
#if defined (_DEBUG)
void TInuLogger::LogIt(TRefByValue<const TDesC> aFmt, ...)
//
//	Messages to the front end emulator and to the log file
	{
	VA_LIST list;
	VA_START(list,aFmt);

	TBuf<KMaxFileName> buf;
	buf.Append(KTestCommentPrepend);
	buf.AppendFormatList(aFmt,list);
	VA_END(list);

	WriteComment(buf);
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:16,代码来源:IpuLogger.cpp

示例11: FLog

void CMsvSendExe::FLog(const TDesC& aFileName, TRefByValue<const TDesC16> aFmt, ...)
	{
	VA_LIST list;
	VA_START(list, aFmt);

	TParse parse;
	parse.Set(aFileName, NULL, NULL);

	TBuf<256> buf;
	buf.Append(parse.Name());
	buf.Append(_L(": "));
	buf.AppendFormatList(aFmt, list);

	RFileLogger::Write(KSchSendLogDir, KSchSendExeLogFile, KSchSendExeLoggingMode,
				buf);
	}
开发者ID:cdaffara,项目名称:symbiandump-mw2,代码行数:16,代码来源:SchSendExe.cpp

示例12: Log

/**
 *
 * General logging function for test steps, with severity.
 *
 * @param	"TInt aSeverity"
 *			Severity level required to log
 *
 * @param	"TRefByValue<const TDesC16> aFmt"
 *			Printf-style aFmt.
 *
 * @param	"..."
 *			Variable print parameters
 *
 * @xxxx
 *
 */
EXPORT_C void RTestStep::Log( TInt aSeverity, TRefByValue<const TDesC16> aFmt, ... )
{
	VA_LIST aList;
	VA_START(aList, aFmt);

	TIntegrationTestLog16Overflow iOverflow16;

	// decode formatted data for display on console
	TBuf<KMaxLogLineLength> lineBuf;
	lineBuf.AppendFormatList(aFmt, aList, &iOverflow16);

	// send the data to the log system via the suite
	if(LogSeverity::IsActive(aSeverity, iSuite->Severity()))
		iSuite->Log(aSeverity, _L("%S"),&lineBuf);

	VA_END(aList); 
}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:33,代码来源:TestStep.cpp

示例13: StepLog

void CTS_MultiHomingStep::StepLog(TRefByValue<const TDesC16> aText, ...)
/**
 * Logging wrapper for CEchoSocket class
 * @param aText Text for the Logging, with any other parameters
 */
	{
	VA_LIST aList;
	VA_START( aList, aText );

	// Create a formated descriptor
	TBuf <MAX_LOG_LINE_LENGTH> LineBuf;
	LineBuf.AppendFormatList( aText, aList);

	// Log to the suite's logger
	iSuite->Log( _L("%S"),&LineBuf );

	VA_END( aList ); 
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:18,代码来源:TS_MultiHomingStep.cpp

示例14: Printf

EXPORT_C void CTestUtils::Printf(TRefByValue<const TDesC> aFmt,...)
	{
	// Print to the log file.
	TTestOverflow overflow(*this);
	VA_LIST list;
	VA_START(list, aFmt);
	TBuf<0x100> aBuf;
	aBuf.AppendFormatList(aFmt, list, &overflow);

	if (iLogToConsole)
		{
		iRTest.Printf(aBuf);
		}

	if (iLogToFile)
		{
		WriteComment(aBuf);
		}
	}
开发者ID:cdaffara,项目名称:symbiandump-mw2,代码行数:19,代码来源:MsvTestUtilsBase.cpp

示例15: PrintL

void CPrinter::PrintL(TRefByValue<const TDesC16> aFormat, ...)
	{
	VA_LIST list;
	VA_START(list, aFormat);
		
	iBuffer.Zero();
	iBuffer.AppendFormatList(aFormat, list);
		
	iCon->Printf(iBuffer);	
	if (iLogToFile)
		{
		HBufC8* utf8 = CnvUtfConverter::ConvertFromUnicodeToUtf8L(iBuffer);
		CleanupStack::PushL(utf8);
		User::LeaveIfError(iFile.Write(*utf8));
		CleanupStack::PopAndDestroy(utf8);
		}	
	
	VA_END(list);
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:19,代码来源:dumppolicy.cpp


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