Projeto Biblioteca POO - PV26465
|
Classe base para representar um leitor na biblioteca. More...
#include <Leitor.h>
Public Member Functions | |
Leitor (string n, string i) | |
Construtor da classe Leitor. | |
virtual | ~Leitor () |
Destrutor da classe Leitor. | |
list< Emprestimo * > | getEmprestimos () const |
virtual int | getLimiteEmprestimos () const =0 |
virtual float | getDescontoMulta () const =0 |
virtual bool | podeProrrogar () const =0 |
virtual void | editarInformacoes ()=0 |
string | getNome () const |
Obtém o nome do leitor. | |
void | adicionarEmprestimo (Emprestimo *e) |
Adiciona um empréstimo à lista de empréstimos do leitor. | |
void | removerEmprestimo (Emprestimo *e) |
Remove um empréstimo da lista de empréstimos. | |
void | LimparTodosEmprestimos () |
Limpa todos os empréstimos. | |
string | getID () const |
Obtém o ID do objeto Leitor. | |
virtual string | getTipo () const =0 |
vector< Emprestimo * > | getHistoricoEmprestimos () const |
Obtém o histórico de empréstimos do leitor. | |
Protected Attributes | |
string | nome |
string | id |
list< Emprestimo * > | emprestimos |
vector< Emprestimo * > | historico_emprestimos |
Classe base para representar um leitor na biblioteca.
Esta classe define as características e comportamentos comuns a todos os tipos de leitores
Leitor::Leitor | ( | string | n, |
string | i ) |
Construtor da classe Leitor.
n | O nome do leitor. |
i | O ID do leitor. |
|
virtual |
void Leitor::adicionarEmprestimo | ( | Emprestimo * | e | ) |
Adiciona um empréstimo à lista de empréstimos do leitor.
e | Ponteiro para o objeto Emprestimo a ser adicionado. |
|
pure virtual |
Implemented in Estudante, LeitorComum, Professor, and Senior.
|
pure virtual |
Implemented in Estudante, LeitorComum, Professor, and Senior.
list< Emprestimo * > Leitor::getEmprestimos | ( | ) | const |
vector< Emprestimo * > Leitor::getHistoricoEmprestimos | ( | ) | const |
Obtém o histórico de empréstimos do leitor.
string Leitor::getID | ( | ) | const |
|
pure virtual |
Implemented in Estudante, LeitorComum, Professor, and Senior.
string Leitor::getNome | ( | ) | const |
Obtém o nome do leitor.
|
pure virtual |
Implemented in Estudante, LeitorComum, Professor, and Senior.
void Leitor::LimparTodosEmprestimos | ( | ) |
Limpa todos os empréstimos.
Esta função remove todos os elementos do vetor de empréstimos, efetivamente limpando todos os registros de empréstimos.
|
pure virtual |
Implemented in Estudante, LeitorComum, Professor, and Senior.
void Leitor::removerEmprestimo | ( | Emprestimo * | e | ) |
Remove um empréstimo da lista de empréstimos.
e | Ponteiro para o objeto Emprestimo a ser removido. |
|
protected |
|
protected |
|
protected |
|
protected |