GlobalObjects
Loading...
Searching...
No Matches
GloClientThread.h
Go to the documentation of this file.
1#ifndef INC_GLOCLIENTTHREAD_H
2#define INC_GLOCLIENTTHREAD_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <string>
45#include <map>
46#include "GloTypes.h"
47#include "GloCommunicator.h"
48#include "GloClient.h"
49//-----------------------------------------------------------------------------
50namespace glo
51{
52 //---------------------------------------------------------------------------
53 /* Forwards */
54 class ClassInfo;
55 class Client;
56 //---------------------------------------------------------------------------
105 {
106 private:
107 //============== Attribute
108 //-----------------------------------------------------------------------
118 std::map< unsigned long, ClassInfo *, std::less<unsigned long> > * m_pSchemaMap;
119 //-----------------------------------------------------------------------
130 //-----------------------------------------------------------------------
141 //-----------------------------------------------------------------------
142
143 //============== Konstruktoren
144 //-----------------------------------------------------------------------
155 //-----------------------------------------------------------------------
156
157 public:
158 //============== Konstruktoren
159 //-----------------------------------------------------------------------
179 ClientThread( const std::string & rstrHostname,
180 unsigned int uiPort,
181 int iSecTimeOut );
182 //-----------------------------------------------------------------------
193 //-----------------------------------------------------------------------
194
195 private:
196 //============== Konstruktoren
197 //-----------------------------------------------------------------------
208 //-----------------------------------------------------------------------
209
210 //============== Methoden
211 //-----------------------------------------------------------------------
231 int initTcpClient( const std::string & rstrHostname, unsigned int uiPort, int iSecTimeOut );
232 //-----------------------------------------------------------------------
233
234 public:
235 //============== Methoden
236 //-----------------------------------------------------------------------
255 //-----------------------------------------------------------------------
267 void setOrderstop( bool bOrderstop = true );
268 //-----------------------------------------------------------------------
280 bool Orderstop() const;
281 //-----------------------------------------------------------------------
302 void setSchemaMap( std::map< unsigned long, ClassInfo *> * pSchemaMap );
303 //-----------------------------------------------------------------------
320 const std::map< unsigned long, ClassInfo *> * getSchemaMap();
321 //-----------------------------------------------------------------------
335 virtual int assignDBManager( OrderMsg * pOrderMsg ) override;
336 //-----------------------------------------------------------------------
337
338 protected:
339 //============== Methoden
340 //-----------------------------------------------------------------------
341 #if defined (__PTHREADS)
358 virtual void cleanUp();
359 //-----------------------------------------------------------------------
360 #else
361
362 public:
363 //============== Methoden
364 //-------------------------------------------------------------------------
387 virtual void cancel() override;
388 //-----------------------------------------------------------------------
389 #endif
390
391 protected:
392 //============== Methoden
393 //-----------------------------------------------------------------------
409 virtual int sendToDBManager( OrderMsg * pOrderMsg ) const override;
410 //-----------------------------------------------------------------------
421 //-----------------------------------------------------------------------
422
423 public:
424 //============== Operatoren
425 //-----------------------------------------------------------------------
438 bool operator== ( const ClientThread & rT ) const;
439 bool operator!= ( const ClientThread & rT ) const;
441 //-----------------------------------------------------------------------
442
443 private:
444 //============== Operatoren
445 //-----------------------------------------------------------------------
455 ClientThread & operator= ( const ClientThread & );
456 //-----------------------------------------------------------------------
457 };
458 //---------------------------------------------------------------------------
459} // namespace glo
460#endif
Header for GloClient
Header for Communicator
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:70
The client, which communicates with a GloServer.
Definition GloClient.h:69
Objects of this class serve as interface between Base or PrivateBase and Manager. In the documentatio...
Definition GloClientThread.h:105
std::map< unsigned long, ClassInfo *, std::less< unsigned long > > * m_pSchemaMap
Definition GloClientThread.h:118
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:129
void setSchemaMap(std::map< unsigned long, ClassInfo * > *pSchemaMap)
bool m_bOrderstop
Definition GloClientThread.h:140
Superclass of LocalThread, ClientThread and ServerThread, because they can act as senders and receive...
Definition GloCommunicator.h:93
This class is used to handle the communication between the application that uses GlobalObjects and Gl...
Definition GloOrderMsg.h:84
Definition GloAbstractBaseLot.h:49