OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
ossimIdManager Class Reference

#include <ossimIdManager.h>

Public Member Functions

ossimId generateId ()
 
ossimId generateId (ossim_int64 customId)
 
void setCurrentId (ossim_int64 customId)
 

Static Public Member Functions

static ossimIdManagerinstance ()
 

Protected Member Functions

 ossimIdManager ()
 
 ossimIdManager (const ossimIdManager &rhs)
 
 ~ossimIdManager ()
 
void operator= (const ossimIdManager &rhs)
 

Static Protected Attributes

static ossimIdManagertheInstance = NULL
 
static ossim_int64 theCurrentId = ossimId::INVALID_ID
 

Detailed Description

Definition at line 6 of file ossimIdManager.h.

Constructor & Destructor Documentation

◆ ossimIdManager() [1/2]

ossimIdManager::ossimIdManager ( )
protected

Definition at line 11 of file ossimIdManager.cpp.

References ossimId::INVALID_ID, and theCurrentId.

Referenced by instance().

12 {
14 }
static ossim_int64 theCurrentId
static const ossim_int64 INVALID_ID
Definition: ossimId.h:83

◆ ossimIdManager() [2/2]

ossimIdManager::ossimIdManager ( const ossimIdManager rhs)
protected

Definition at line 16 of file ossimIdManager.cpp.

References ossimId::INVALID_ID, and theCurrentId.

17 {
19 }
static ossim_int64 theCurrentId
static const ossim_int64 INVALID_ID
Definition: ossimId.h:83

◆ ~ossimIdManager()

ossimIdManager::~ossimIdManager ( )
protected

Definition at line 21 of file ossimIdManager.cpp.

References ossimId::INVALID_ID, and theCurrentId.

22 {
24 }
static ossim_int64 theCurrentId
static const ossim_int64 INVALID_ID
Definition: ossimId.h:83

Member Function Documentation

◆ generateId() [1/2]

ossimId ossimIdManager::generateId ( )

Definition at line 37 of file ossimIdManager.cpp.

References theCurrentId.

Referenced by ossimConnectableObject::ossimConnectableObject().

38 {
39  return ossimId(++theCurrentId);
40 }
static ossim_int64 theCurrentId

◆ generateId() [2/2]

ossimId ossimIdManager::generateId ( ossim_int64  customId)

Definition at line 42 of file ossimIdManager.cpp.

References theCurrentId.

43 {
44  if(customId <= theCurrentId)
45  {
46  return ossimId(++theCurrentId);
47  }
48  theCurrentId = customId;
49  return ossimId(theCurrentId);
50 }
static ossim_int64 theCurrentId

◆ instance()

ossimIdManager * ossimIdManager::instance ( )
static

Definition at line 26 of file ossimIdManager.cpp.

References ossimIdManager(), theCurrentId, and theInstance.

Referenced by ossimConnectableContainer::makeUniqueIds(), ossimImageChain::makeUniqueIds(), and ossimConnectableObject::ossimConnectableObject().

27 {
28  if(!theInstance)
29  {
31  theCurrentId = -1;
32  }
33 
34  return theInstance;
35 }
static ossim_int64 theCurrentId
static ossimIdManager * theInstance

◆ operator=()

void ossimIdManager::operator= ( const ossimIdManager rhs)
protected

Definition at line 57 of file ossimIdManager.cpp.

58 {}

◆ setCurrentId()

void ossimIdManager::setCurrentId ( ossim_int64  customId)

Definition at line 52 of file ossimIdManager.cpp.

References theCurrentId.

53 {
54  theCurrentId = (currentId >=0) ? currentId: theCurrentId;
55 }
static ossim_int64 theCurrentId

Member Data Documentation

◆ theCurrentId

ossim_int64 ossimIdManager::theCurrentId = ossimId::INVALID_ID
staticprotected

Definition at line 21 of file ossimIdManager.h.

Referenced by generateId(), instance(), ossimIdManager(), setCurrentId(), and ~ossimIdManager().

◆ theInstance

ossimIdManager * ossimIdManager::theInstance = NULL
staticprotected

Definition at line 20 of file ossimIdManager.h.

Referenced by instance().


The documentation for this class was generated from the following files: