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); }
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); } }