Skip to content
Snippets Groups Projects
Commit 345ed225 authored by Debora's avatar Debora
Browse files

forteenth commit: adicionando comentarios para doxygen (anfibio nativo e exotico)

parent 1ffc38b8
No related branches found
No related tags found
No related merge requests found
Pipeline #
#include "anfibioexotico.h"
/**
* @brief Sobrecarga do operador de inserção para animal do tipo AnfibioExotico
* @param output - stream de saida
* anfexo - Objeto do tipo AnfibioExotico
*
*/
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
......@@ -10,6 +15,16 @@ std::ostream& operator<< (std::ostream &output, AnfibioExotico const &anfexo) {
return output;
}
/**
* @brief Construtor cria um animal do tipo AnfíbioExotico, que toma Anfibio, AnimalSilvestre
* e AnimalExotico como classe pai a herdar seus atributos
* @param identity - ID, clas - classe do animal, name - nome do animal, scientific - nome científico do animal,
* sex - sexo do animal, size - tamanho do animal, diet - dieta do animal,
* baptism - nome de batismo do animal, vet - veterinário associado ao animal,
* caretaker - tratador associado ao animal, total_changes - número de mudas do animal,
* last_change - ultima muda do animal, biernr - ibama, origin_country - pais de origem de animal
*/
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):
......
......@@ -5,6 +5,14 @@
#include "animalsilvestre.h"
#include "animalexotico.h"
/* @brief Classe Anfibio, que modela um Anfíbio do tipo Exotico, que toma Anfibio, AnimalSilvestre e AnimalExotico
* como classes pai a herdar seus atributos
* @param Métodos públicos:
* friend std::ostream& operator<< (std::ostream &output, AnfibioExotico const anfexo) Sobrecarga do operador de inserção para animal do tipo AnfibioExotico
* AnfibioExotico - Construtor cria um animal do tipo AnfíbioExotico
*
*/
class AnfibioExotico: public Anfibio, AnimalSilvestre, AnimalExotico {
private:
......
#include "anfibionativo.h"
/**
* @brief Sobrecarga do operador de inserção para animal do tipo AnfibioNativo
* @param output - stream de saida
* anfnat - Objeto do tipo AnfibioNativo
*
*/
std::ostream& operator<< (std::ostream &output, AnfibioNativo const &anfnat) {
output << anfnat.id >> ";" << anfnat.classe << ";" << anfnat.nome << ";" << anfnat.cientifico << ";" <<
......@@ -10,9 +16,20 @@ std::ostream& operator<< (std::ostream &output, AnfibioNativo const &anfnat) {
return output;
}
/**
* @brief Construtor cria um animal do tipo AnfíbioNativo, que toma Anfibio, AnimalSilvestre
* e AnimalNativo como classe pai a herdar seus atributos
* @param identity - ID, clas - classe do animal, name - nome do animal, scientific - nome científico do animal,
* sex - sexo do animal, size - tamanho do animal, diet - dieta do animal,
* baptism - nome de batismo do animal, vet - veterinário associado ao animal,
* caretaker - tratador associado ao animal, total_changes - número de mudas do animal,
* last_change - ultima muda do animal, biernr - ibama, origin_state - estado de origem do animal,
* authorization - autorização do animal
*/
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):
string last_change, string biernr, string origin_state, string authorization):
Anfibio(identity, clas, name, scientific, sex, size, diet, baptism, vet, caretaker, total_changes, last_change),
AnimalSilvestre(biernr),
......
......@@ -5,6 +5,13 @@
#include "animalsilvestre.h"
#include "animalnativo.h"
/* @brief Classe Anfibio, que modela um Anfíbio do tipo Nativo, que toma Anfibio, AnimalSilvestre e AnimalNativo
* como classes pai a herdar seus atributos
* @param Métodos públicos:
* friend std::ostream& operator<< (std::ostream &output, AnfibioNativo const anfnat) Sobrecarga do operador de inserção para animal do tipo AnfibioNativo
* AnfibioNativo - Construtor cria um animal do tipo AnfíbioNativo
*
*/
class AnfibioNativo: public Anfibio, AnimalSilvestre, AnimalNativo {
private:
......
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