31 Customer(
const picojson::object& val);
72 std::vector<int> packageIDVector;
73 std::vector<bool> deliveredPackage;
75 int numDeliveredPackage;
Customer(const picojson::object &val)
Definition: customer.cc:9
int GetNumUndeliverPackage() const
This return the number of undelivered packages the customer has.
Definition: customer.cc:55
A representation of a Customer, inherited from EntityBase It stores the Customer's name...
Definition: customer.h:25
int GetNumDeliverPackage() const
This return the number of packages the customer has in total.
Definition: customer.cc:51
bool PackageDeliver(int packageID)
This returns TRUE if the package with the ID passed in has already been delivered; FALSE otherwise...
Definition: customer.cc:59
Definition: asubject.cc:3
void AddPackage(int packageID)
This adds a package ID into the customer's tracked packageID vector if the package has not already be...
Definition: customer.cc:41
int GetNumPackageTotal() const
This return the number of packages the customer has in total.
Definition: customer.cc:47
The base class for creating entities.
Definition: entity_base.h:27