Bank System
CreditAccount Class Reference

#include <account.h>

Inheritance diagram for CreditAccount:
Inheritance graph
Collaboration diagram for CreditAccount:
Collaboration graph

Public Member Functions

 CreditAccount (Date m_date, string m_id, double m_credit, double m_rate, double m_fee)
 
double getCredit ()
 
double getRate ()
 
double getFee ()
 
double getAvailableCredit ()
 
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 ()
 
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 credit
 
double rate
 
double fee
 
Date a_date
 
string id
 
double balance
 

Static Private Attributes

static double total =0
 

Constructor & Destructor Documentation

◆ CreditAccount()

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

Member Function Documentation

◆ deposit()

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

Implements Account.

Here is the call graph for this function:

◆ getAvailableCredit()

double CreditAccount::getAvailableCredit ( )
Here is the call graph for this function:

◆ getBalance()

double Account::getBalance ( )
inherited

◆ getCredit()

double CreditAccount::getCredit ( )
virtual

Implements Account.

◆ getCurMonthBillAmount()

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

Implements Account.

Here is the call graph for this function:

◆ getFee()

double CreditAccount::getFee ( )

◆ getID()

string Account::getID ( )
inherited

◆ getIDPtr()

string * Account::getIDPtr ( )
inherited

◆ getRate()

double CreditAccount::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 CreditAccount::settle ( Date  m_date)
virtual

Implements Account.

Here is the call graph for this function:

◆ show()

void CreditAccount::show ( )
virtual

Implements Account.

Here is the call graph for this function:

◆ withdraw()

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

Implements Account.

Here is the call graph for this function:

Member Data Documentation

◆ a_date

Date CreditAccount::a_date
private

◆ acc

Accumulator CreditAccount::acc
private

◆ balance

double Account::balance
privateinherited

◆ credit

double CreditAccount::credit
private

◆ fee

double CreditAccount::fee
private

◆ has_credit

bool Account::has_credit =false
inherited

◆ has_savings

bool Account::has_savings =false
inherited

◆ id

string Account::id
privateinherited

◆ rate

double CreditAccount::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: