Skip to content
Snippets Groups Projects
Commit 1ffc38b8 authored by Debora's avatar Debora
Browse files

thirtheenth commit: adicionando classes anfibio nativo e exotico

parent e5b5c94d
No related branches found
No related tags found
No related merge requests found
Pipeline #
#include "anfibioexotico.h"
std::ostream& operator<< (std::ostream &output, AnfibioExotico const &anfexo) {
output << anfexo.id >> ";" << anfexo.classe << ";" << anfexo.nome << ";" << anfexo.cientifico << ";" <<
anfexo.sexo << ";" << anfexo.tamanho << ";" << anfexo.dieta << ";" << anfexo.batismo << ";" << anfexo.veterinario
<< ";" << anfexo.tratador << ";" << anfexo.total_mudas << ";" << anfexo.ultima_muda << ";"
<< anfexo.ibama << ";" << anfexo.pais_origem;
return output;
}
AnfibioExotico(int identity, string clas, string name, string scientific, char sex, float size,
string diet, string baptism, Veterinario vet, Tratador caretaker,
int total_changes, string last_change, string biernr, string origin_country):
Anfibio(identity, clas, name, scientific, sex, size, diet, baptism, vet, caretaker, total_changes, last_change),
AnimalSilvestre(biernr),
AnimalExotico(origin_country)
{}
}
#ifndef __ANFIBIOEXOTICO_H__
#define __ANFIBIOEXOTICO_H__
#include "anfibio.h"
#include "animalsilvestre.h"
#include "animalexotico.h"
class AnfibioExotico: public Anfibio, AnimalSilvestre, AnimalExotico {
private:
public:
friend std::ostream& operator<< (std::ostream &output, AnfibioExotico const anfexo);
AnfibioExotico(int identity, string clas, string name, string scientific, char sex, float size,
string diet, string baptism, Veterinario vet, Tratador caretaker,
int total_changes, string last_change, string biernr, string origin_country);
AnfibioExotico();
};
#endif
#include "anfibionativo.h"
std::ostream& operator<< (std::ostream &output, AnfibioNativo const &anfnat) {
output << anfnat.id >> ";" << anfnat.classe << ";" << anfnat.nome << ";" << anfnat.cientifico << ";" <<
anfnat.sexo << ";" << anfnat.tamanho << ";" << anfnat.dieta << ";" << anfnat.batismo << ";" << anfnat.veterinario
<< ";" << anfnat.tratador << ";" << anfnat.total_mudas << ";" << anfnat.ultima_muda << ";"
<< anfnat.ibama << ";" << anfnat.uf_origem << ";" << anfnat.autorizacao;
return output;
}
AnfibioNativo(int identity, string clas, string name, string scientific, char sex, float size,
string diet, string baptism, Veterinario vet, Tratador caretaker,int total_changes,
string last_change, string ibama, string origin_state, string authorization):
Anfibio(identity, clas, name, scientific, sex, size, diet, baptism, vet, caretaker, total_changes, last_change),
AnimalSilvestre(biernr),
AnimalNativo(origin_state, authorization)
{}
}
#ifndef __ANFIBIONATIVO_H__
#define __ANFIBIONATIVO_H__
#include "anfibio.h"
#include "animalsilvestre.h"
#include "animalnativo.h"
class AnfibioNativo: public Anfibio, AnimalSilvestre, AnimalNativo {
private:
public:
friend std::ostream& operator<< (std::ostream &output, AnfibioNativo const anfnat);
AnfibioNativo(int identity, string clas, string name, string scientific, char sex, float size,
string diet, string baptism, Veterinario vet, Tratador caretaker,
int total_changes, string last_change, string biernr, string origin_state, string authorization);
AnfibioNativo();
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment