本文整理汇总了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();
}
示例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
}
示例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);
}
示例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);
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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 );
}
示例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);
}
}
示例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);
}