DateTimeData Class Reference

#include <customgui_datetime.h>

Inheritance diagram for DateTimeData:

Public Member Functions

DateTime GetDateTime () const
 
void SetDateTime (const DateTime *d, Bool bSetDate=true, Bool bSetTime=true)
 

Static Public Member Functions

static DateTimeDataAlloc ()
 
static void Free (DateTimeData *&pData)
 

Private Member Functions

 DateTimeData ()
 
 ~DateTimeData ()
 

Detailed Description

DateTime data type (DATETIME_DATA).

Note
Has to be created with Alloc() and destroyed with Free().

Constructor & Destructor Documentation

◆ DateTimeData()

DateTimeData ( )
private

◆ ~DateTimeData()

~DateTimeData ( )
private

Member Function Documentation

◆ Alloc()

static DateTimeData* Alloc ( )
static

Allocates a DateTime data. Destroy the allocated DateTime data with Free().

Returns
The allocated DateTime data, or nullptr if the allocation failed.

◆ Free()

static void Free ( DateTimeData *&  pData)
static

Destructs DateTime data allocated with Alloc().

Parameters
[in,out]pDataThe DateTime data to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards.

◆ GetDateTime()

DateTime GetDateTime ( ) const

Gets the date time.

Returns
The date time.

◆ SetDateTime()

void SetDateTime ( const DateTime d,
Bool  bSetDate = true,
Bool  bSetTime = true 
)

Sets the date time.

Parameters
[in]dThe date time to set.
[in]bSetDateIf false the date part is discarded. Default to true.
[in]bSetTimeIf false the time part is discarded. Default to true.