Bank System
Date Class Reference

#include <date.h>

Collaboration diagram for Date:
Collaboration graph

Public Member Functions

 Date (int m_year, int m_month, int m_day)
 
 Date ()
 
void show ()
 
int getYear () const
 
int getMonth () const
 
int getDay () const
 
bool isValid ()
 
bool isLeap (int m_year) const
 
int getMaxDay () const
 
int date_trans () const
 
int distance (const Date &m_date) const
 
bool operator< (const Date &m_date) const
 
bool operator<= (const Date &m_date) const
 
void setDate (QDate &m_qdate)
 
void resetDate (QDate m_qdate)
 

Static Public Member Functions

static Date read ()
 

Private Attributes

int year
 
int month =1
 
int day
 

Constructor & Destructor Documentation

◆ Date() [1/2]

Date::Date ( int  m_year,
int  m_month,
int  m_day 
)

◆ Date() [2/2]

Date::Date ( )

Member Function Documentation

◆ date_trans()

int Date::date_trans ( ) const
Here is the call graph for this function:

◆ distance()

int Date::distance ( const Date m_date) const
Here is the call graph for this function:

◆ getDay()

int Date::getDay ( ) const

◆ getMaxDay()

int Date::getMaxDay ( ) const
Here is the call graph for this function:

◆ getMonth()

int Date::getMonth ( ) const

◆ getYear()

int Date::getYear ( ) const

◆ isLeap()

bool Date::isLeap ( int  m_year) const

◆ isValid()

bool Date::isValid ( )
Here is the call graph for this function:

◆ operator<()

bool Date::operator< ( const Date m_date) const
Here is the call graph for this function:

◆ operator<=()

bool Date::operator<= ( const Date m_date) const
Here is the call graph for this function:

◆ read()

Date Date::read ( )
static

◆ resetDate()

void Date::resetDate ( QDate  m_qdate)

◆ setDate()

void Date::setDate ( QDate &  m_qdate)

◆ show()

void Date::show ( )

Member Data Documentation

◆ day

int Date::day
private

◆ month

int Date::month =1
private

◆ year

int Date::year
private

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