GlobalObjects
Lade ...
Suche ...
Keine Treffer
GloCommunicaterThread.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOCOMMUNICATORTHREAD_H
2#define INC_GLOCOMMUNICATORTHREAD_H
3//-----------------------------------------------------------------------------
42//-----------------------------------------------------------------------------
43#include <queue>
44#include "GloTypes.h"
46#include "GloOrderMsg.h"
47#if defined (__PTHREADS)
48 #include <EuEndlessPThread.h>
49 #include <semaphore.h>
50#else
51 #include "EuRepeatingThread.h"
52#endif
53//-----------------------------------------------------------------------------
54namespace glo
55{
56 //---------------------------------------------------------------------------
57 /* Forwards */
58 class IndexQueryBaseStruct;
59 //---------------------------------------------------------------------------
83 #if defined (__PTHREADS)
84 class CommunicaterThread : public EuEndlessPThread
85 #else
87 #endif
88
89 {
90 private:
91 //============== Attribute
92 //-----------------------------------------------------------------------
103 //-----------------------------------------------------------------------
114 std::queue<OrderMsg *> m_MsgQueue;
115 //-----------------------------------------------------------------------
116
117 //============== Konstruktoren
118 //-----------------------------------------------------------------------
129 //-----------------------------------------------------------------------
130
131 public:
132 //============== Konstruktoren
133 //-----------------------------------------------------------------------
152 RealIndexPool * pRealIndexPool );
153 //-----------------------------------------------------------------------
164 //-----------------------------------------------------------------------
165
166 private:
167 //============== Konstruktoren
168 //-----------------------------------------------------------------------
179 //-----------------------------------------------------------------------
180
181 public:
182 //============== Methoden
183 //-----------------------------------------------------------------------
202 //-----------------------------------------------------------------------
216 void takeOrder( OrderMsg * pOrderMsg );
217 //-----------------------------------------------------------------------
228 //-----------------------------------------------------------------------
229
230 protected:
231 //============== Methoden
232 //-----------------------------------------------------------------------
253 void getRecord( OrderMsg * pOrderMsg );
254 //-----------------------------------------------------------------------
276 void getObjectData( OrderMsg * pOrderMsg );
277 //-----------------------------------------------------------------------
296 void checkStored( OrderMsg * pOrderMsg );
297 //-----------------------------------------------------------------------
316 void openAllSet( OrderMsg * pOrderMsg );
317 //-----------------------------------------------------------------------
336 void closeAllSet( OrderMsg * pOrderMsg );
337 //-----------------------------------------------------------------------
356 void getObjIdFromAllSet( OrderMsg * pOrderMsg );
357 //-----------------------------------------------------------------------
379 //-----------------------------------------------------------------------
400 //-----------------------------------------------------------------------
422 //-----------------------------------------------------------------------
455 IndexQueryBaseStruct * pGloIndexQueryBaseStruct );
456 //-----------------------------------------------------------------------
476 //-----------------------------------------------------------------------
496 //-----------------------------------------------------------------------
516 //-----------------------------------------------------------------------
535 void removeIndexFilter( OrderMsg * pOrderMsg );
536 //-----------------------------------------------------------------------
566 void transformIndexStrings( IndexQueryBaseStruct & rGloIndexQueryBaseStruct );
567 //-----------------------------------------------------------------------
599 IndexQueryBaseStruct * pGloIndexQueryBaseStruct );
600 //-----------------------------------------------------------------------
619 void getSizeFromAllSet( OrderMsg * pOrderMsg );
620 //-----------------------------------------------------------------------
641 //-----------------------------------------------------------------------
661 void setPositionInAllSet( OrderMsg * pOrderMsg );
662 //-----------------------------------------------------------------------
681 void objIDInAllSet( OrderMsg * pOrderMsg );
682 //-----------------------------------------------------------------------
683
684 //============== Die Thread-Methode
685 //-----------------------------------------------------------------------
701 virtual void work() override;
702 //-----------------------------------------------------------------------
703 #if defined (__PTHREADS)
719 virtual void cleanUp();
720 //-----------------------------------------------------------------------
721 #else
722
723 public:
724 //============== Methoden
725 //-------------------------------------------------------------------------
746 virtual void cancel() override;
747 //-----------------------------------------------------------------------
748 #endif
749
750 protected:
751 //============== Operatoren
752 //-----------------------------------------------------------------------
765 bool operator== ( const CommunicaterThread & rT ) const;
766 bool operator!= ( const CommunicaterThread & rT ) const;
768 //-----------------------------------------------------------------------
769
770 private:
771 //============== Operatoren
772 //-----------------------------------------------------------------------
783 //-----------------------------------------------------------------------
784 };
785 //---------------------------------------------------------------------------
786} // namespace glo
787#endif
Header für EuEndlessPThread
Header für RepeatingThread
Header für OrderMsg
Header für TableReaderInterface
Für jede Bibliothek, hier 'GlobalObjects' gibt es eine Typen-Datei.
Basisklasse für einen Thread der seine Arbeit endlos bis zum Abbruch ausführt.
Definition EuEndlessPThread.h:84
Basisklasse für einen Thread der seine Arbeit endlos bis zum Abbruch ausführt.
Definition EuRepeatingThread.h:93
Ein CommunicaterThread nimmt Aufträge für sein TableReaderInterface an.
Definition GloCommunicaterThread.h:89
void getObjIdFromAllSet(OrderMsg *pOrderMsg)
void takeOrder(OrderMsg *pOrderMsg)
virtual void work() override
std::queue< OrderMsg * > m_MsgQueue
Definition GloCommunicaterThread.h:114
void closeAllSet(OrderMsg *pOrderMsg)
void getObjectData(OrderMsg *pOrderMsg)
bool operator!=(const CommunicaterThread &rT) const
void getRecord(OrderMsg *pOrderMsg)
void getIndexedObjIdListBySearchValueFromAllSet(OrderMsg *pOrderMsg)
void objIDInAllSet(OrderMsg *pOrderMsg)
void getSizeFromAllSet(OrderMsg *pOrderMsg)
void openAllSet(OrderMsg *pOrderMsg)
void transformIndexStrings(IndexQueryBaseStruct &rGloIndexQueryBaseStruct)
TableReaderInterface * m_pTableReader
Definition GloCommunicaterThread.h:102
TableReaderInterface * getReader() const
void removeIndexFilter(OrderMsg *pOrderMsg)
CommunicaterThread(SchemaInterface *pSchema, RealIndexPool *pRealIndexPool)
void setIndexFilterByRangeInSet(OrderMsg *pOrderMsg)
CommunicaterThread & operator=(const CommunicaterThread &)
void setIndexFilterBySearchValueInSet(OrderMsg *pOrderMsg)
void checkStored(OrderMsg *pOrderMsg)
virtual void cancel() override
void getIndexedObjIdListByRangeFromAllSet(OrderMsg *pOrderMsg)
void setAnyIndexFilterInAllSet(OrderMsg *pOrderMsg, IndexQueryBaseStruct *pGloIndexQueryBaseStruct)
void getIndexedObjIdListByComparingFromAllSet(OrderMsg *pOrderMsg)
void setIndexFilterByComparingInSet(OrderMsg *pOrderMsg)
CommunicaterThread(const CommunicaterThread &)
bool operator==(const CommunicaterThread &rT) const
void setPositionInAllSet(OrderMsg *pOrderMsg)
void setCurrentObjectInAllSet(OrderMsg *pOrderMsg)
void getAnyIndexedObjIdListFromAllSet(OrderMsg *pOrderMsg, IndexQueryBaseStruct *pGloIndexQueryBaseStruct)
Definition GloIndexQueryBaseStruct.h:72
Mittels dieser Klasse wird die Kommunikation zwischen der Applikation, welche GlobalObjects nutzt und...
Definition GloOrderMsg.h:84
Der reale Index im Gegensatz zum TransactionIndexPool, welcher für jede Transaktion erstellt wird.
Definition GloRealIndexPool.h:69
Diese Klasse ist die Schnittstelle zu einem GlobalObjects-Schema. Sie beinhaltet alle Klasseninformat...
Definition GloSchemaInterface.h:91
Ein Objekt dieser Klasse greift auf Tabellen zu und liest Datensätze (Record) und Binärdateien (eut::...
Definition GloTableReaderInterface.h:87
Definition GloAbstractBaseLot.h:49