GlobalObjects
Lade ...
Suche ...
Keine Treffer
glo::WatchNotifyManager::IndexReadWriteWatch Klassenreferenz

Überwachungsklasse für Lese-Index-, Schreibe-Index- und Reindex-Aktionen der Datenbank. Mehr ...

Öffentliche Methoden

 IndexReadWriteWatch ()
 
 ~IndexReadWriteWatch ()
 
void deleteAllWatches (Communicator *pCommunicator)
 
std::size_t getCommunicatorIndexReadWriteNotifyModesMapCount () const
 
bool hasWatches () const
 
void setWatch (const CommunicatorCallBackIndex &rCommunicatorCallBackIndex, TdWatchNotifyMode tdWatchNotifyMode)
 
int unsetWatch (const CommunicatorCallBackIndex &rCommunicatorCallBackIndex, TdWatchNotifyMode tdWatchNotifyMode, bool bSimulate=false)
 

Geschützte Methoden

void clearCommunicatorIndexReadWriteNotifyModesMap ()
 

Private Attribute

std::map< CommunicatorCallBackIndex, CommunicatorIndexReadWriteNotifyModes *, std::less< CommunicatorCallBackIndex > > m_CommunicatorIndexReadWriteNotifyModesMap
 

Ausführliche Beschreibung

Überwachungsklasse für Lese-Index-, Schreibe-Index- und Reindex-Aktionen der Datenbank.

Autor
Helmut Jakoby

Beschreibung der Konstruktoren und Destruktoren

◆ IndexReadWriteWatch()

glo::WatchNotifyManager::IndexReadWriteWatch::IndexReadWriteWatch ( )

Standard-Konstruktor.

◆ ~IndexReadWriteWatch()

glo::WatchNotifyManager::IndexReadWriteWatch::~IndexReadWriteWatch ( )

Destruktor.

Dokumentation der Elementfunktionen

◆ clearCommunicatorIndexReadWriteNotifyModesMap()

void glo::WatchNotifyManager::IndexReadWriteWatch::clearCommunicatorIndexReadWriteNotifyModesMap ( )
protected

Entfernt alle Lese-, Schreib- oder Reindex-Überwachungen.

◆ deleteAllWatches()

void glo::WatchNotifyManager::IndexReadWriteWatch::deleteAllWatches ( Communicator * pCommunicator)

Entfernt alle Überwachungen des übergebenen Client-Kommunikators.

Parameter
[in]pCommunicatorDer Client-Kommunikators.

◆ getCommunicatorIndexReadWriteNotifyModesMapCount()

std::size_t glo::WatchNotifyManager::IndexReadWriteWatch::getCommunicatorIndexReadWriteNotifyModesMapCount ( ) const

Liefert die Anzahl der Lese-Index-, Schreibe-Index- und Reindex-Überwachungen.

Rückgabe
Die Anzahl der Überwachungen.

◆ hasWatches()

bool glo::WatchNotifyManager::IndexReadWriteWatch::hasWatches ( ) const

Prüft ob Lese-Index-, Schreibe-Index- oder Reindex-Überwachungen gesetzt sind.

Rückgabe
Liefert true, wenn Überwachungen gesetzt sind.

◆ setWatch()

void glo::WatchNotifyManager::IndexReadWriteWatch::setWatch ( const CommunicatorCallBackIndex & rCommunicatorCallBackIndex,
TdWatchNotifyMode tdWatchNotifyMode )

Registriert eine Lese-, Schreib- oder Reindex-Überwachung.

Parameter
[in]rCommunicatorCallBackIndexDer Client-Kommunikator, der überwachen möchte.
[in]tdWatchNotifyModeDer aktivierte Überwachungsmodus.

◆ unsetWatch()

int glo::WatchNotifyManager::IndexReadWriteWatch::unsetWatch ( const CommunicatorCallBackIndex & rCommunicatorCallBackIndex,
TdWatchNotifyMode tdWatchNotifyMode,
bool bSimulate = false )

Deregistriert eine Lese-, Schreib- oder Reindex-Überwachung.

Parameter
[in]rCommunicatorCallBackIndexDer Client-Kommunikator mit seiner Adresse der CallBack-Funktion, welcher überwachen möchte.
[in]tdWatchNotifyModeDer zu deregistrierende Überwachungsmodus für den Client.
[in]bSimulateWenn true, wird nur simuliert, also kein Wert gesetzt, aber ein Ergebnis bzw. Fehler geliefert.
Rückgabe
Eine Rückgabe > 0 zeigt an, dass der Überwachungsmodus abgeschaltet wurde; es existieren aber noch soviele Überwachungsmodi wie in der Rückgabeanzahl angegeben.
Eine Rückgabe == 0 zeigt an, dass der Überwachungsmodus abgeschaltet wurde und es keine weiteren Überwachungsmodi gibt!
Eine Rückgabe < 0 zeigt einen Fehler an.

Dokumentation der Datenelemente

◆ m_CommunicatorIndexReadWriteNotifyModesMap

std::map< CommunicatorCallBackIndex, CommunicatorIndexReadWriteNotifyModes *, std::less<CommunicatorCallBackIndex> > glo::WatchNotifyManager::IndexReadWriteWatch::m_CommunicatorIndexReadWriteNotifyModesMap
private

Die einzelnen CommunicatorIndexReadWriteNotifyModes der Lese-Index-, Schreibe-Index- und Reindex-Aktionen der Datenbank mit dem CommunicatorCallBackIndex als Index in einer Map.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: