GenerateId class generates a static unique identifier to the customer, drone, robot, package, and battery objects. Each time GenerateNewId() is called, the id variable gets incremented.  
 More...
#include <generate_id.h>
Public Member Functions | |
| int | ResetId () | 
Static Public Member Functions | |
| static int | GenerateNewId () | 
GenerateId class generates a static unique identifier to the customer, drone, robot, package, and battery objects. Each time GenerateNewId() is called, the id variable gets incremented. 
      
  | 
  static | 
This function statically increments the ID counter to create a unique identifier.
| int csci3081::GenerateId::ResetId | ( | ) | 
Warning: this function SHOULD ONLY BE CALLED during Google Test cases. This function resets the ID counter back to 0.
 1.8.13