Bank System
Account Class Referenceabstract

#include <account.h>

Inheritance diagram for Account:
Inheritance graph
Collaboration diagram for Account:
Collaboration graph

Public Member Functions

 Account (Date m_date, string m_id)
 
virtual ~Account ()
 
void record (Date m_date, double m_amount, string m_desc)
 
string getID ()
 
string * getIDPtr ()
 
double getBalance ()
 
virtual double getRate ()=0
 
virtual double getCredit ()=0
 
virtual void show ()=0
 
virtual void deposit (Date m_date, double m_amount, string m_desc)=0
 
virtual void withdraw (Date m_date, double m_amount, string m_desc)=0
 
virtual void settle (Date date)=0
 
void query (Date begin_date, Date end_date)
 
void queryGUI (QDate query_date, multimap< Date, QString > &date_append_temp, multimap< double, QString > &balance_append_temp)
 
virtual double getCurMonthBillAmount (Date m_date, string m_bill_kind, string *m_id)=0
 

Static Public Member Functions

static double getTotal ()
 

Public Attributes

multimap< Date, AccountRecordrecordMap
 
bool has_savings =false
 
bool has_credit =false
 

Private Attributes

string id
 
double balance
 

Static Private Attributes

static double total =0
 

Constructor & Destructor Documentation

◆ Account()

Account::Account ( Date  m_date,
string  m_id 
)
Here is the call graph for this function:

◆ ~Account()

Account::~Account ( )
virtual

Member Function Documentation

◆ deposit()

virtual void Account::deposit ( Date  m_date,
double  m_amount,
string  m_desc 
)
pure virtual

Implemented in SavingsAccount, and CreditAccount.

◆ getBalance()

double Account::getBalance ( )

◆ getCredit()

virtual double Account::getCredit ( )
pure virtual

Implemented in SavingsAccount, and CreditAccount.

◆ getCurMonthBillAmount()

virtual double Account::getCurMonthBillAmount ( Date  m_date,
string  m_bill_kind,
string *  m_id 
)
pure virtual

Implemented in SavingsAccount, and CreditAccount.

◆ getID()

string Account::getID ( )

◆ getIDPtr()

string * Account::getIDPtr ( )

◆ getRate()

virtual double Account::getRate ( )
pure virtual

Implemented in SavingsAccount, and CreditAccount.

◆ getTotal()

double Account::getTotal ( )
static

◆ query()

void Account::query ( Date  begin_date,
Date  end_date 
)

◆ queryGUI()

void Account::queryGUI ( QDate  query_date,
multimap< Date, QString > &  date_append_temp,
multimap< double, QString > &  balance_append_temp 
)
Here is the call graph for this function:

◆ record()

void Account::record ( Date  m_date,
double  m_amount,
string  m_desc 
)
Here is the call graph for this function:

◆ settle()

virtual void Account::settle ( Date  date)
pure virtual

Implemented in SavingsAccount, and CreditAccount.

◆ show()

virtual void Account::show ( )
pure virtual

Implemented in SavingsAccount, and CreditAccount.

◆ withdraw()

virtual void Account::withdraw ( Date  m_date,
double  m_amount,
string  m_desc 
)
pure virtual

Implemented in SavingsAccount, and CreditAccount.

Member Data Documentation

◆ balance

double Account::balance
private

◆ has_credit

bool Account::has_credit =false

◆ has_savings

bool Account::has_savings =false

◆ id

string Account::id
private

◆ recordMap

multimap<Date, AccountRecord> Account::recordMap

◆ total

double Account::total =0
staticprivate

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