OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimIdManager.cpp
Go to the documentation of this file.
2 #include <time.h>
3 #ifndef NULL
4 #include <stddef.h>
5 #endif
6 
7 
10 
12 {
14 }
15 
17 {
19 }
20 
22 {
24 }
25 
27 {
28  if(!theInstance)
29  {
31  theCurrentId = -1;
32  }
33 
34  return theInstance;
35 }
36 
38 {
39  return ossimId(++theCurrentId);
40 }
41 
43 {
44  if(customId <= theCurrentId)
45  {
46  return ossimId(++theCurrentId);
47  }
48  theCurrentId = customId;
49  return ossimId(theCurrentId);
50 }
51 
53 {
54  theCurrentId = (currentId >=0) ? currentId: theCurrentId;
55 }
56 
58 {}
void setCurrentId(ossim_int64 customId)
static ossim_int64 theCurrentId
static const ossim_int64 INVALID_ID
Definition: ossimId.h:83
ossimId generateId()
static ossimIdManager * theInstance
long long ossim_int64
void operator=(const ossimIdManager &rhs)
static ossimIdManager * instance()