Bank System
SavingsAccount Class Reference

#include <account.h>

Inheritance diagram for SavingsAccount:
Inheritance graph
Collaboration diagram for SavingsAccount:
Collaboration graph

Public Member Functions

 SavingsAccount (Date m_date, string m_id, double m_rate)
 
double getRate ()
 
void deposit (Date m_date, double m_amount, string m_detail)
 
void withdraw (Date m_date, double m_amount, string m_detail)
 
void settle (Date m_date)
 
void show ()
 
double getCredit ()
 
virtual double getCurMonthBillAmount (Date m_date, string m_bill_kind, string *m_id)
 
void record (Date m_date, double m_amount, string m_desc)
 
string getID ()
 
string * getIDPtr ()
 
double getBalance ()
 
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)
 

Static Public Member Functions

static double getTotal ()
 

Public Attributes

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

Private Attributes

Accumulator acc
 
double rate
 
string id
 
double balance
 

Static Private Attributes

static double total =0
 

Constructor & Destructor Documentation

◆ SavingsAccount()

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

Member Function Documentation

◆ deposit()

void SavingsAccount::deposit ( Date  m_date,
double  m_amount,
string  m_detail 
)
virtual

Implements Account.

Here is the call graph for this function:

◆ getBalance()

double Account::getBalance ( )
inherited

◆ getCredit()

double SavingsAccount::getCredit ( )
virtual

Implements Account.

◆ getCurMonthBillAmount()

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

Implements Account.

Here is the call graph for this function:

◆ getID()

string Account::getID ( )
inherited

◆ getIDPtr()

string * Account::getIDPtr ( )
inherited

◆ getRate()

double SavingsAccount::getRate ( )
virtual

Implements Account.

◆ getTotal()

double Account::getTotal ( )
staticinherited

◆ query()

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

◆ queryGUI()

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

◆ record()

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

◆ settle()

void SavingsAccount::settle ( Date  m_date)
virtual

Implements Account.

Here is the call graph for this function:

◆ show()

void SavingsAccount::show ( )
virtual

Implements Account.

Here is the call graph for this function:

◆ withdraw()

void SavingsAccount::withdraw ( Date  m_date,
double  m_amount,
string  m_detail 
)
virtual

Implements Account.

Here is the call graph for this function:

Member Data Documentation

◆ acc

Accumulator SavingsAccount::acc
private

◆ balance

double Account::balance
privateinherited

◆ has_credit

bool Account::has_credit =false
inherited

◆ has_savings

bool Account::has_savings =false
inherited

◆ id

string Account::id
privateinherited

◆ rate

double SavingsAccount::rate
private

◆ recordMap

multimap<Date, AccountRecord> Account::recordMap
inherited

◆ total

double Account::total =0
staticprivateinherited

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