A representation of a Customer, inherited from EntityBase It stores the Customer's name, ID, version, position, direction, and dynamic mode.
More...
#include <customer.h>
|
std::string | name |
|
int | ID |
|
std::vector< float > | position |
|
std::vector< float > | direction |
|
bool | dynamic |
|
int | version |
|
float | radius |
|
std::string | type |
|
picojson::object | details |
|
A representation of a Customer, inherited from EntityBase It stores the Customer's name, ID, version, position, direction, and dynamic mode.
◆ Customer() [1/2]
csci3081::Customer::Customer |
( |
const picojson::object & |
val | ) |
|
Constructor param[in] val: the json object of the Customer
◆ Customer() [2/2]
csci3081::Customer::Customer |
( |
Customer & |
customer | ) |
|
Copy Constructor. This creates a new instance of Customer that has the same content as the Customer argument.
- Parameters
-
[in] | customer | Customer instance that wants to be copied |
◆ AddPackage()
void csci3081::Customer::AddPackage |
( |
int |
packageID | ) |
|
This adds a package ID into the customer's tracked packageID vector if the package has not already been added. This would help check package delivery for the customer.
- Parameters
-
[in] | packageID | the int for the ID of the package |
◆ PackageDeliver()
bool csci3081::Customer::PackageDeliver |
( |
int |
packageID | ) |
|
This returns TRUE if the package with the ID passed in has already been delivered; FALSE otherwise.
- Parameters
-
[in] | packageID | the int for the ID of the package |
The documentation for this class was generated from the following files:
- /home/user/repo/project/include/customer.h
- /home/user/repo/project/src/customer.cc