In file /home/eternity/Source/Common/UidGenerator/H/uidGenerator.h:

class UniqueIDGenerator

Unique ID Generator

Inheritance:

UniqueIDGenerator


Public Methods

Err UniqueIDGenerator::CreateDefinition (TableFieldQueue *definition)
Kratky_komentar_s_teckou_na_konci
Err UniqueIDGenerator::GetID (ID *newID)
Get unique ID
Err UniqueIDGenerator::InitLastIDFile (Char *anIDTableName)
Kratky_komentar_s_teckou_na_konci
UniqueIDGenerator::UniqueIDGenerator (Char *anIDTableName, ID startAt)
Unique ID generator constructor

Public

methods
UniqueIDGenerator (Char *anIDTableName, ID startAt = 0)
create ID Generator at the given path, starting with value startAt
Err GetID (ID *newID)
get unique ID

Protected

attributes
pthread_mutex_t mutex
Synchronization
methods
Err CreateDefinition (TableFieldQueue *definition)
create table definition for lastIDTable
Err InitLastIDFile (Char *lastIDTableName)
initialize the lastIDTable file

Documentation

Unique ID Generator. This class is responsible for generating unique ID's even in the case of an unexpected termination of the program.
attributes

pthread_mutex_t mutex
Synchronization

methods

Err CreateDefinition(TableFieldQueue *definition)
create table definition for lastIDTable

Err InitLastIDFile(Char *lastIDTableName)
initialize the lastIDTable file

methods

UniqueIDGenerator(Char *anIDTableName, ID startAt = 0)
create ID Generator at the given path, starting with value startAt

Err GetID(ID *newID)
get unique ID

Err UniqueIDGenerator::CreateDefinition(TableFieldQueue *definition)
Kratky_komentar_s_teckou_na_konci. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
RandomGenerator

Err UniqueIDGenerator::GetID(ID *newID)
Get unique ID. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
RandomGenerator

Err UniqueIDGenerator::InitLastIDFile(Char *anIDTableName)
Kratky_komentar_s_teckou_na_konci. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
RandomGenerator

UniqueIDGenerator::UniqueIDGenerator(Char *anIDTableName, ID startAt)
Unique ID generator constructor. Dlouhy_komentar
Parameters:
anIDTableName -
startAt -
Author:
Pavel
See Also:
RandomGenerator


This class has no child classes.
Author:
Pavel

alphabetic index hierarchy of classes


generated by doc++