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

Public Member Functions

 DomDate ()
 
 ~DomDate ()
 
void clearElementDay ()
 
void clearElementMonth ()
 
void clearElementYear ()
 
int elementDay () const
 
int elementMonth () const
 
int elementYear () const
 
bool hasElementDay () const
 
bool hasElementMonth () const
 
bool hasElementYear () const
 
void read (QXmlStreamReader &reader)
 
void setElementDay (int a)
 
void setElementMonth (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 { Year = 1 , Month = 2 , Day = 4 }
 

Private Member Functions

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

Private Attributes

uint m_children
 
int m_day
 
int m_month
 
QString m_text
 
int m_year
 

Detailed Description

Definition at line 2599 of file ui4_p.h.

Member Enumeration Documentation

◆ Child

enum DomDate::Child
private
Enumerator
Year 
Month 
Day 

Definition at line 2636 of file ui4_p.h.

2636 { Year = 1, Month = 2, Day = 4 };
@ Day
Definition: ui4_p.h:2636
@ Year
Definition: ui4_p.h:2636
@ Month
Definition: ui4_p.h:2636

Constructor & Destructor Documentation

◆ DomDate() [1/2]

DomDate::DomDate ( )

◆ ~DomDate()

DomDate::~DomDate ( )

◆ DomDate() [2/2]

DomDate::DomDate ( const DomDate other)
private

Member Function Documentation

◆ clear()

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

◆ clearElementDay()

void DomDate::clearElementDay ( )

◆ clearElementMonth()

void DomDate::clearElementMonth ( )

◆ clearElementYear()

void DomDate::clearElementYear ( )

◆ elementDay()

int DomDate::elementDay ( ) const
inline

Definition at line 2621 of file ui4_p.h.

2621 { return m_day; }
int m_day
Definition: ui4_p.h:2635

◆ elementMonth()

int DomDate::elementMonth ( ) const
inline

Definition at line 2616 of file ui4_p.h.

2616 { return m_month; }
int m_month
Definition: ui4_p.h:2634

◆ elementYear()

int DomDate::elementYear ( ) const
inline

Definition at line 2611 of file ui4_p.h.

2611 { return m_year; }
int m_year
Definition: ui4_p.h:2633

◆ hasElementDay()

bool DomDate::hasElementDay ( ) const
inline

Definition at line 2623 of file ui4_p.h.

2623 { return m_children & Day; }
uint m_children
Definition: ui4_p.h:2632

◆ hasElementMonth()

bool DomDate::hasElementMonth ( ) const
inline

Definition at line 2618 of file ui4_p.h.

2618 { return m_children & Month; }

◆ hasElementYear()

bool DomDate::hasElementYear ( ) const
inline

Definition at line 2613 of file ui4_p.h.

2613 { return m_children & Year; }

◆ operator=()

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

◆ read()

void DomDate::read ( QXmlStreamReader &  reader)

◆ setElementDay()

void DomDate::setElementDay ( int  a)

◆ setElementMonth()

void DomDate::setElementMonth ( int  a)

◆ setElementYear()

void DomDate::setElementYear ( int  a)

◆ setText()

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

Definition at line 2607 of file ui4_p.h.

2607 { m_text = s; }
QString m_text
Definition: ui4_p.h:2627

◆ text()

QString DomDate::text ( ) const
inline

Definition at line 2606 of file ui4_p.h.

2606 { return m_text; }

◆ write()

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

Member Data Documentation

◆ m_children

uint DomDate::m_children
private

Definition at line 2632 of file ui4_p.h.

◆ m_day

int DomDate::m_day
private

Definition at line 2635 of file ui4_p.h.

◆ m_month

int DomDate::m_month
private

Definition at line 2634 of file ui4_p.h.

◆ m_text

QString DomDate::m_text
private

Definition at line 2627 of file ui4_p.h.

◆ m_year

int DomDate::m_year
private

Definition at line 2633 of file ui4_p.h.


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