本文整理汇总了C++中ON_TextLog::PrintTime方法的典型用法代码示例。如果您正苦于以下问题:C++ ON_TextLog::PrintTime方法的具体用法?C++ ON_TextLog::PrintTime怎么用?C++ ON_TextLog::PrintTime使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ON_TextLog
的用法示例。
在下文中一共展示了ON_TextLog::PrintTime方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void ON_3dmRevisionHistory::Dump( ON_TextLog& dump ) const
{
const wchar_t* ws = m_sCreatedBy;
if ( !ws ) ws = L"";
dump.Print("Created by: %ls\n", ws );
dump.Print("Created on: "); dump.PrintTime(m_create_time); dump.Print("\n");
ws = m_sLastEditedBy;
if ( !ws ) ws = L"";
dump.Print("Last edited by: %ls\n", ws );
dump.Print("Last edited on: "); dump.PrintTime(m_last_edit_time); dump.Print("\n");
dump.Print("Revision count: %d\n",m_revision_count);
}
示例2:
void ON_3dmRevisionHistory::Dump( ON_TextLog& dump ) const
{
if ( IsEmpty() )
{
dump.Print("Empty revision history.\n");
}
else
{
const wchar_t* ws = static_cast< const wchar_t* >(m_sCreatedBy);
if ( !ws ) ws = L"";
dump.Print("Created by: %ls\n", ws );
dump.Print("Created on: "); dump.PrintTime(m_create_time); dump.Print("\n");
ws = static_cast< const wchar_t* >(m_sLastEditedBy);
if ( !ws ) ws = L"";
dump.Print("Last edited by: %ls\n", ws );
dump.Print("Last edited on: "); dump.PrintTime(m_last_edit_time); dump.Print("\n");
dump.Print("Revision count: %d\n",m_revision_count);
}
}