CSCI 3081 - Drone Delivery System
Main Page
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
~
+
Functions
a
b
c
d
e
g
h
i
m
n
o
p
r
s
t
u
v
w
~
Variables
Related Functions
+
Files
File List
•
All
Classes
Files
Functions
Variables
Friends
Pages
include
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 */
csci3081
Definition:
asubject.cc:3
csci3081::GenerateId
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
csci3081::GenerateId::ResetId
int ResetId()
Definition:
generate_id.cc:10
csci3081::GenerateId::GenerateNewId
static int GenerateNewId()
Definition:
generate_id.cc:15
Generated by
1.8.13