// AnimalInfo.h
/* This class returns information about an animal,
* including its weight, species, name, number of times
* it needs to be fed each day, and whether it is
* a (1 herbivore, 2 omnivore, 3 carnivore).
*
* Crystal Torres
*/
#ifndef ANIMAL_INFO_H
#define ANIMAL_INFO_H
#include <string>
#include <iostream>
using namespace std;
class AnimalInfo {
public:
// Default constructor for AnimalInfo that initializes default
// values
AnimalInfo();
// Constructor that sets values stored in the class to those passed
// by the parameters
AnimalInfo(int, string, string, int, int);
// Prints out information about the animal
friend ostream& operator<<(ostream&, const AnimalInfo&);
// Returns the weight of the animal
int getWeight() const {return weight;}
// Returns the name of the animal
string getName() const {return name;}
// Returns the animal's species
string getSpecies() const {return species;}
// Returns the number of times the animal needs to be fed
// Each Day
int getTimesFed() const {return timesFeed;}
// Returns the type of food the animal eats
string getType() const;
private:
int weight;
string name;
string species;
int timesFeed;
int type;
};
#endif