Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
TYNameManager Class Reference

Generateur de nom unique. More...

#include <TYNameManager.h>

Inheritance diagram for TYNameManager:
Inheritance graph
[legend]
Collaboration diagram for TYNameManager:
Collaboration graph
[legend]

Public Member Functions

 ~TYNameManager ()
 
QString generateName (const char *classname)
 Retourne le nom de la classe associe a un nombre. More...
 
void enable (bool enable)
 Active la generation de nom. More...
 
bool isEnable () const
 Retourne si vrai si la generation de nom est active, faux sinon. More...
 
- Public Member Functions inherited from IRefCount
 IRefCount ()
 
virtual ~IRefCount ()
 
virtual int incRef ()
 
virtual int decRef ()
 
int getRefCount () const
 

Static Public Member Functions

static TYNameManagerget ()
 Retourne l'instance singleton. More...
 

Private Types

typedef std::pair< std::string, unsigned int > IDCounter
 
typedef std::map< std::string, IDCounterIDMap
 

Private Member Functions

 TYNameManager ()
 
 TYNameManager (const TYNameManager &)
 
TYNameManageroperator= (const TYNameManager &)
 

Private Attributes

IDMap _idMap
 
bool _enable
 

Static Private Attributes

static LPTYNameManager _pInstance = 0
 

Additional Inherited Members

- Protected Attributes inherited from IRefCount
int m_refCount
 The reference counter. More...
 

Detailed Description

Generateur de nom unique.

Author
Projet_Tympan

Definition at line 40 of file TYNameManager.h.

Member Typedef Documentation

◆ IDCounter

typedef std::pair<std::string, unsigned int> TYNameManager::IDCounter
private

Definition at line 83 of file TYNameManager.h.

◆ IDMap

typedef std::map<std::string, IDCounter> TYNameManager::IDMap
private

Definition at line 84 of file TYNameManager.h.

Constructor & Destructor Documentation

◆ ~TYNameManager()

TYNameManager::~TYNameManager ( )

Destructeur.

Definition at line 29 of file TYNameManager.cpp.

◆ TYNameManager() [1/2]

TYNameManager::TYNameManager ( )
private

Constructeur par default.

Definition at line 27 of file TYNameManager.cpp.

Here is the caller graph for this function:

◆ TYNameManager() [2/2]

TYNameManager::TYNameManager ( const TYNameManager )
private

Member Function Documentation

◆ enable()

void TYNameManager::enable ( bool  enable)
inline

Active la generation de nom.

Definition at line 64 of file TYNameManager.h.

Here is the caller graph for this function:

◆ generateName()

QString TYNameManager::generateName ( const char *  classname)

Retourne le nom de la classe associe a un nombre.

Definition at line 44 of file TYNameManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get()

static TYNameManager * TYNameManager::get ( )
static

Retourne l'instance singleton.

Definition at line 34 of file TYNameManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isEnable()

bool TYNameManager::isEnable ( ) const
inline

Retourne si vrai si la generation de nom est active, faux sinon.

Definition at line 73 of file TYNameManager.h.

◆ operator=()

TYNameManager& TYNameManager::operator= ( const TYNameManager )
private

Member Data Documentation

◆ _enable

bool TYNameManager::_enable
private

Definition at line 88 of file TYNameManager.h.

◆ _idMap

IDMap TYNameManager::_idMap
private

Definition at line 85 of file TYNameManager.h.

◆ _pInstance

LPTYNameManager TYNameManager::_pInstance = 0
staticprivate

Definition at line 80 of file TYNameManager.h.


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