// @topic W13-2-010 pet license application v2
// @brief Cat and Dog classes added

#ifndef PET_LICENSE_H_INCLUDED_
#define PET_LICENSE_H_INCLUDED_

#include <string>
#include <vector>
#include <iostream>

class Pet {
    friend class PetLicense;

    const double tag_fee = 2.00;
    const double dog_fee = 5.00;
    const double cat_fee = 3.00;

    std::string name;
    //char type;
    int age;
    std::string color;
    bool adoption;
public:
    // constructors
    Pet(
        std::string name,
        //char type,
        int age,
        std::string color,
        bool adoption
        );
    // operations
    void print() const;
    double compute_fee() const;
    double compute_discounts() const;

};//class Pet

class Dog : public Pet {
public:
    Dog(
        std::string name,
        int age,
        std::string color,
        bool adoption
         );
};//class Dog

class Cat : public Pet {
public:
    Cat(
        std::string name,
        int age,
        std::string color,
        bool adoption
         );
};//class Cat

class PetOwner {
    friend class PetLicense;
    const double discount_fee = 5.00;

public:
    static const int SENIOR_CITIZEN_AGE = 65;
private:
    std::string name;
    int age;
    std::string address;
    std::vector< Pet* > pets;
public:
    // constructors
    PetOwner(
        std::string name,
        int age,
        std::string address
        );
    // operations
    void add( Pet* ptr_pet );
    void print() const;
    bool is_senior_citizen() const;
    double compute_fee() const;
    double compute_discounts() const;

};//class PetOwner

class PetLicense {
    const int cats_per_license = 3;
    const double license_fee = 6.00;
    const double processing_fee = 5.00;
    const double donation_fee = 1.00;
    const double state_fee = 1.00;

    PetOwner* powner;
    double total_fee;
    int license_number;
public:
    // constructors
    PetLicense( PetOwner* powner );
    // operations
    double calculate_fee();
    void print() const;
    double compute_fee() const;
    double compute_discounts() const;
};//class PetLicense

#endif //PET_LICENSE_H_INCLUDED_