CSCI 3081 - Drone Delivery System
All Classes Files Functions Variables Friends Pages
generate_id.h
1 #ifndef GENERATE_ID_H
2 #define GENERATE_ID_H
3 
4 namespace csci3081 {
5 
6 /*******************************************************************************
7  * Class Definitions
8  ******************************************************************************/
14 class GenerateId {
15  public:
16 
20  static int GenerateNewId();
21 
27  int ResetId();
28 
29  private:
30  static int id;
31 };
32 
33 } // namespace csci3081
34 
35 #endif /* GENERATE_ID_H */
Definition: asubject.cc:3
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.
Definition: generate_id.h:14
int ResetId()
Definition: generate_id.cc:10
static int GenerateNewId()
Definition: generate_id.cc:15