BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DomDateTime Class Reference

Public Member Functions

 DomDateTime ()
 
 ~DomDateTime ()
 
void clearElementDay ()
 
void clearElementHour ()
 
void clearElementMinute ()
 
void clearElementMonth ()
 
void clearElementSecond ()
 
void clearElementYear ()
 
int elementDay () const
 
int elementHour () const
 
int elementMinute () const
 
int elementMonth () const
 
int elementSecond () const
 
int elementYear () const
 
bool hasElementDay () const
 
bool hasElementHour () const
 
bool hasElementMinute () const
 
bool hasElementMonth () const
 
bool hasElementSecond () const
 
bool hasElementYear () const
 
void read (QXmlStreamReader &reader)
 
void setElementDay (int a)
 
void setElementHour (int a)
 
void setElementMinute (int a)
 
void setElementMonth (int a)
 
void setElementSecond (int a)
 
void setElementYear (int a)
 
void setText (const QString &s)
 
QString text () const
 
void write (QXmlStreamWriter &writer, const QString &tagName="") const
 

Private Types

enum  Child {
  Hour = 1 , Minute = 2 , Second = 4 , Year = 8 ,
  Month = 16 , Day = 32
}
 

Private Member Functions

 DomDateTime (const DomDateTime &other)
 
void clear (bool clear_all=true)
 
void operator= (const DomDateTime &other)
 

Private Attributes

uint m_children
 
int m_day
 
int m_hour
 
int m_minute
 
int m_month
 
int m_second
 
QString m_text
 
int m_year
 

Detailed Description

Definition at line 2685 of file ui4_p.h.

Member Enumeration Documentation

◆ Child

enum DomDateTime::Child
private
Enumerator
Hour 
Minute 
Second 
Year 
Month 
Day 

Definition at line 2740 of file ui4_p.h.

2740 { Hour = 1, Minute = 2, Second = 4, Year = 8, Month = 16, Day = 32 };

Constructor & Destructor Documentation

◆ DomDateTime() [1/2]

DomDateTime::DomDateTime ( )

◆ ~DomDateTime()

DomDateTime::~DomDateTime ( )

◆ DomDateTime() [2/2]

DomDateTime::DomDateTime ( const DomDateTime other)
private

Member Function Documentation

◆ clear()

void DomDateTime::clear ( bool  clear_all = true)
private

◆ clearElementDay()

void DomDateTime::clearElementDay ( )

◆ clearElementHour()

void DomDateTime::clearElementHour ( )

◆ clearElementMinute()

void DomDateTime::clearElementMinute ( )

◆ clearElementMonth()

void DomDateTime::clearElementMonth ( )

◆ clearElementSecond()

void DomDateTime::clearElementSecond ( )

◆ clearElementYear()

void DomDateTime::clearElementYear ( )

◆ elementDay()

int DomDateTime::elementDay ( ) const
inline

Definition at line 2722 of file ui4_p.h.

2722 { return m_day; }
int m_day
Definition: ui4_p.h:2739

◆ elementHour()

int DomDateTime::elementHour ( ) const
inline

Definition at line 2697 of file ui4_p.h.

2697 { return m_hour; }
int m_hour
Definition: ui4_p.h:2734

◆ elementMinute()

int DomDateTime::elementMinute ( ) const
inline

Definition at line 2702 of file ui4_p.h.

2702 { return m_minute; }
int m_minute
Definition: ui4_p.h:2735

◆ elementMonth()

int DomDateTime::elementMonth ( ) const
inline

Definition at line 2717 of file ui4_p.h.

2717 { return m_month; }
int m_month
Definition: ui4_p.h:2738

◆ elementSecond()

int DomDateTime::elementSecond ( ) const
inline

Definition at line 2707 of file ui4_p.h.

2707 { return m_second; }
int m_second
Definition: ui4_p.h:2736

◆ elementYear()

int DomDateTime::elementYear ( ) const
inline

Definition at line 2712 of file ui4_p.h.

2712 { return m_year; }
int m_year
Definition: ui4_p.h:2737

◆ hasElementDay()

bool DomDateTime::hasElementDay ( ) const
inline

Definition at line 2724 of file ui4_p.h.

2724 { return m_children & Day; }
uint m_children
Definition: ui4_p.h:2733

◆ hasElementHour()

bool DomDateTime::hasElementHour ( ) const
inline

Definition at line 2699 of file ui4_p.h.

2699 { return m_children & Hour; }

◆ hasElementMinute()

bool DomDateTime::hasElementMinute ( ) const
inline

Definition at line 2704 of file ui4_p.h.

2704 { return m_children & Minute; }

◆ hasElementMonth()

bool DomDateTime::hasElementMonth ( ) const
inline

Definition at line 2719 of file ui4_p.h.

2719 { return m_children & Month; }

◆ hasElementSecond()

bool DomDateTime::hasElementSecond ( ) const
inline

Definition at line 2709 of file ui4_p.h.

2709 { return m_children & Second; }

◆ hasElementYear()

bool DomDateTime::hasElementYear ( ) const
inline

Definition at line 2714 of file ui4_p.h.

2714 { return m_children & Year; }

◆ operator=()

void DomDateTime::operator= ( const DomDateTime other)
private

◆ read()

void DomDateTime::read ( QXmlStreamReader &  reader)

◆ setElementDay()

void DomDateTime::setElementDay ( int  a)

◆ setElementHour()

void DomDateTime::setElementHour ( int  a)

◆ setElementMinute()

void DomDateTime::setElementMinute ( int  a)

◆ setElementMonth()

void DomDateTime::setElementMonth ( int  a)

◆ setElementSecond()

void DomDateTime::setElementSecond ( int  a)

◆ setElementYear()

void DomDateTime::setElementYear ( int  a)

◆ setText()

void DomDateTime::setText ( const QString &  s)
inline

Definition at line 2693 of file ui4_p.h.

2693 { m_text = s; }
QString m_text
Definition: ui4_p.h:2728

◆ text()

QString DomDateTime::text ( ) const
inline

Definition at line 2692 of file ui4_p.h.

2692 { return m_text; }

◆ write()

void DomDateTime::write ( QXmlStreamWriter &  writer,
const QString &  tagName = "" 
) const

Member Data Documentation

◆ m_children

uint DomDateTime::m_children
private

Definition at line 2733 of file ui4_p.h.

◆ m_day

int DomDateTime::m_day
private

Definition at line 2739 of file ui4_p.h.

◆ m_hour

int DomDateTime::m_hour
private

Definition at line 2734 of file ui4_p.h.

◆ m_minute

int DomDateTime::m_minute
private

Definition at line 2735 of file ui4_p.h.

◆ m_month

int DomDateTime::m_month
private

Definition at line 2738 of file ui4_p.h.

◆ m_second

int DomDateTime::m_second
private

Definition at line 2736 of file ui4_p.h.

◆ m_text

QString DomDateTime::m_text
private

Definition at line 2728 of file ui4_p.h.

◆ m_year

int DomDateTime::m_year
private

Definition at line 2737 of file ui4_p.h.


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