Operator Console
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
Timestamp Class Reference

A class for acquiring the current time. More...

#include <Timestamp.h>

Public Member Functions

 Timestamp (void)
 
virtual ~Timestamp (void)
 
const CString & Get ()
 
 Timestamp (void)
 
virtual ~Timestamp (void)
 
const CString & Get ()
 

Protected Attributes

CTime m_time
 
CString m_str
 

Detailed Description

A class for acquiring the current time.

Constructor & Destructor Documentation

Timestamp::Timestamp ( void  )
24 {
25 }
Timestamp::~Timestamp ( void  )
virtual
29 {
30 }
Timestamp::Timestamp ( void  )
virtual Timestamp::~Timestamp ( void  )
virtual

Member Function Documentation

const CString & Timestamp::Get ( )

References m_str, and m_time.

Referenced by ImageTest::GetDataNode(), ImageTest::GetPassFailNode(), ImageTest::GetString(), COperatorConsoleDlg::LogMessage(), and ImageTest::Run().

33 {
34  m_time = CTime::GetCurrentTime();
35 
36 #if 0
37  m_str = m_time.Format("%c "); // full date and time
38 #else
39  m_str = m_time.Format("%X "); // just the time, no date
40 #endif
41 
42  return m_str;
43 }
CString m_str
Definition: Timestamp.h:34
CTime m_time
Definition: Timestamp.h:33

Here is the caller graph for this function:

const CString& Timestamp::Get ( )

Member Data Documentation

CString Timestamp::m_str
protected

Referenced by Get().

CTime Timestamp::m_time
protected

Referenced by Get().


The documentation for this class was generated from the following files: