#include <opennurbs_3dm_properties.h>

Public Member Functions

 ON_3dmRevisionHistory ()
 Default construction sets this = ON_3dmRevisionHistory::Empty. More...
 
 ON_3dmRevisionHistory (const ON_3dmRevisionHistory &)=default
 
 ~ON_3dmRevisionHistory ()=default
 
bool CreateTimeIsSet () const
 
void Dump (ON_TextLog &) const
 
bool IsEmpty () const
 
bool IsValid () const
 
bool LastEditedTimeIsSet () const
 
int NewRevision ()
 
ON_3dmRevisionHistoryoperator= (const ON_3dmRevisionHistory &)=default
 
bool Read (ON_BinaryArchive &)
 
bool Write (ON_BinaryArchive &) const
 

Static Public Member Functions

static ON_3dmRevisionHistory FirstRevision ()
 

Public Attributes

struct tm m_create_time
 
struct tm m_last_edit_time
 
int m_revision_count = 0
 
ON_wString m_sCreatedBy
 
ON_wString m_sLastEditedBy
 

Static Public Attributes

static const ON_3dmRevisionHistory Empty
 The Empty revision has a revision number zero, all time values set to zero and all string values empty. More...
 

Constructor & Destructor Documentation

◆ ON_3dmRevisionHistory() [1/2]

ON_3dmRevisionHistory::ON_3dmRevisionHistory ( )

Default construction sets this = ON_3dmRevisionHistory::Empty.

◆ ~ON_3dmRevisionHistory()

ON_3dmRevisionHistory::~ON_3dmRevisionHistory ( )
default

◆ ON_3dmRevisionHistory() [2/2]

ON_3dmRevisionHistory::ON_3dmRevisionHistory ( const ON_3dmRevisionHistory )
default

Member Function Documentation

◆ CreateTimeIsSet()

bool ON_3dmRevisionHistory::CreateTimeIsSet ( ) const
Returns
true if m_create_time is >= January 1, 1970

◆ Dump()

void ON_3dmRevisionHistory::Dump ( ON_TextLog ) const

◆ FirstRevision()

static ON_3dmRevisionHistory ON_3dmRevisionHistory::FirstRevision ( )
static
Returns
A revision history with m_revision_count = 1 m_create_time = now m_last_edit_time = now m_sCreatedBy = current user m_sLastEditedBy = current user

◆ IsEmpty()

bool ON_3dmRevisionHistory::IsEmpty ( ) const

◆ IsValid()

bool ON_3dmRevisionHistory::IsValid ( ) const

◆ LastEditedTimeIsSet()

bool ON_3dmRevisionHistory::LastEditedTimeIsSet ( ) const
Returns
true if m_last_edit_time is >= January 1, 1970

◆ NewRevision()

int ON_3dmRevisionHistory::NewRevision ( )

◆ operator=()

ON_3dmRevisionHistory& ON_3dmRevisionHistory::operator= ( const ON_3dmRevisionHistory )
default

◆ Read()

bool ON_3dmRevisionHistory::Read ( ON_BinaryArchive )

◆ Write()

bool ON_3dmRevisionHistory::Write ( ON_BinaryArchive ) const

Member Data Documentation

◆ Empty

const ON_3dmRevisionHistory ON_3dmRevisionHistory::Empty
static

The Empty revision has a revision number zero, all time values set to zero and all string values empty.

◆ m_create_time

struct tm ON_3dmRevisionHistory::m_create_time

◆ m_last_edit_time

struct tm ON_3dmRevisionHistory::m_last_edit_time

◆ m_revision_count

int ON_3dmRevisionHistory::m_revision_count = 0

◆ m_sCreatedBy

ON_wString ON_3dmRevisionHistory::m_sCreatedBy

◆ m_sLastEditedBy

ON_wString ON_3dmRevisionHistory::m_sLastEditedBy