GlobalObjects
Lade ...
Suche ...
Keine Treffer
GloClientThread.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOCLIENTTHREAD_H
2#define INC_GLOCLIENTTHREAD_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include <string>
38#include <map>
39#include "GloTypes.h"
40#include "GloCommunicator.h"
41#include "GloClient.h"
42//-----------------------------------------------------------------------------
43namespace glo
44{
45 //---------------------------------------------------------------------------
46 /* Forwards */
47 class ClassInfo;
48 class Client;
49 //---------------------------------------------------------------------------
98 {
99 private:
100 //============== Attribute
101 //-----------------------------------------------------------------------
111 std::map< unsigned long, ClassInfo *, std::less<unsigned long> > * m_pSchemaMap;
112 //-----------------------------------------------------------------------
123 //-----------------------------------------------------------------------
134 //-----------------------------------------------------------------------
135
136 //============== Konstruktoren
137 //-----------------------------------------------------------------------
148 //-----------------------------------------------------------------------
149
150 public:
151 //============== Konstruktoren
152 //-----------------------------------------------------------------------
172 ClientThread( const std::string & rstrHostname,
173 unsigned int uiPort,
174 int iSecTimeOut );
175 //-----------------------------------------------------------------------
186 //-----------------------------------------------------------------------
187
188 private:
189 //============== Konstruktoren
190 //-----------------------------------------------------------------------
201 //-----------------------------------------------------------------------
202
203 //============== Methoden
204 //-----------------------------------------------------------------------
224 int initTcpClient( const std::string & rstrHostname, unsigned int uiPort, int iSecTimeOut );
225 //-----------------------------------------------------------------------
226
227 public:
228 //============== Methoden
229 //-----------------------------------------------------------------------
248 //-----------------------------------------------------------------------
260 void setOrderstop( bool bOrderstop = true );
261 //-----------------------------------------------------------------------
273 bool Orderstop() const;
274 //-----------------------------------------------------------------------
295 void setSchemaMap( std::map< unsigned long, ClassInfo *> * pSchemaMap );
296 //-----------------------------------------------------------------------
313 const std::map< unsigned long, ClassInfo *> * getSchemaMap();
314 //-----------------------------------------------------------------------
328 virtual int assignDBManager( OrderMsg * pOrderMsg ) override;
329 //-----------------------------------------------------------------------
330
331 protected:
332 //============== Methoden
333 //-----------------------------------------------------------------------
334 #if defined (__PTHREADS)
351 virtual void cleanUp();
352 //-----------------------------------------------------------------------
353 #else
354
355 public:
356 //============== Methoden
357 //-------------------------------------------------------------------------
380 virtual void cancel() override;
381 //-----------------------------------------------------------------------
382 #endif
383
384 protected:
385 //============== Methoden
386 //-----------------------------------------------------------------------
402 virtual int sendToDBManager( OrderMsg * pOrderMsg ) const override;
403 //-----------------------------------------------------------------------
414 //-----------------------------------------------------------------------
415
416 public:
417 //============== Operatoren
418 //-----------------------------------------------------------------------
431 bool operator== ( const ClientThread & rT ) const;
432 bool operator!= ( const ClientThread & rT ) const;
434 //-----------------------------------------------------------------------
435
436 private:
437 //============== Operatoren
438 //-----------------------------------------------------------------------
448 ClientThread & operator= ( const ClientThread & );
449 //-----------------------------------------------------------------------
450 };
451 //---------------------------------------------------------------------------
452} // namespace glo
453#endif
Header für GloClient
Header für Communicator
Für jede Bibliothek, hier 'GlobalObjects' gibt es eine Typen-Datei.
#define __glo_export_dll
Definition GloTypes.h:63
Der Client, welcher mit einem GloServer kommuniziert.
Definition GloClient.h:62
Objekte dieser Klasse dienen als Schnittstelle zwischen Base bzw. PrivateBase und Manager....
Definition GloClientThread.h:98
std::map< unsigned long, ClassInfo *, std::less< unsigned long > > * m_pSchemaMap
Definition GloClientThread.h:111
virtual void cancel() override
virtual int assignDBManager(OrderMsg *pOrderMsg) override
void setOrderstop(bool bOrderstop=true)
Client * tcpClient()
ClientThread(const ClientThread &)
int initTcpClient(const std::string &rstrHostname, unsigned int uiPort, int iSecTimeOut)
const std::map< unsigned long, ClassInfo * > * getSchemaMap()
bool Orderstop() const
ClientThread(const std::string &rstrHostname, unsigned int uiPort, int iSecTimeOut)
virtual int sendToDBManager(OrderMsg *pOrderMsg) const override
Client * m_pTcpClient
Definition GloClientThread.h:122
void setSchemaMap(std::map< unsigned long, ClassInfo * > *pSchemaMap)
bool m_bOrderstop
Definition GloClientThread.h:133
OberKlasse von LocalThread, ClientThread und ServerThread, weil diese als Sender und Empfänger (Kommu...
Definition GloCommunicator.h:86
Mittels dieser Klasse wird die Kommunikation zwischen der Applikation, welche GlobalObjects nutzt und...
Definition GloOrderMsg.h:77
Definition GloAbstractBaseLot.h:42