1#ifndef INC_GLOORDERMSG_H
2#define INC_GLOORDERMSG_H
60 #pragma warning( disable : 4251 )
1051 eDISCONNECTED_CLIENT
1158 eUNDEF_DATATYPE = 0,
1548 void * pOrderObject,
1549 void * pOrderResult,
1550 void * pFirstAdditionalInfo,
1551 void * pSecondAdditionalInfo );
1587 void * pOrderObject,
1588 void * pFirstAdditionalInfo =
nullptr );
1613 const std::map< unsigned long, ClassInfo * > * pSchemaInfoMap );
2213 const std::map< unsigned long, ClassInfo * > * pSchemaInfoMap );
2322 template<
typename T>
int addStreamData0terminated(
eut::Blob & rBlob,
const T tData )
const;
2354 std::map<
ObjID,
ObjID, std::less<ObjID> > & rReadyRecordMap )
const;
2389 std::size_t & rnCurrentBlobPosition,
2390 std::size_t & rnBlobPosition,
2393 const std::map< unsigned long, ClassInfo * > * pSchemaInfoMap );
2432 std::ostringstream t_ossConverter;
2434 t_ossConverter << tData;
2435 t_iErr = rBlob.
append( t_ossConverter.str().c_str(), t_ossConverter.str().size() );
2436 if ( ! t_iErr ) t_iErr = rBlob.
append(
"\0", 1 );
2442 #pragma warning( default : 4251 )
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:70
This class allows to edit a blob (insert, copy, search etc.).
Definition EuBlob.h:75
int append(const char *pBuffer, std::size_t nBufferSize)
A CommunicaterThread accepts requests for its TableReaderInterface.
Definition GloCommunicaterThread.h:89
Superclass of LocalThread, ClientThread and ServerThread, because they can act as senders and receive...
Definition GloCommunicator.h:93
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:84
This class is used to handle the communication between the application that uses GlobalObjects and Gl...
Definition GloOrderMsg.h:84
OrderMsg(const eut::Blob &rBlob, EnStreamOrderDataType eStreamDataType, const std::map< unsigned long, ClassInfo * > *pSchemaInfoMap)
void setThreadID(NUM_PTR ipThreadID)
OrderMsg(const OrderMsg &)
OrderMsg::EnSendDirection m_eDirection
Definition GloOrderMsg.h:1467
std::string getSchemaName() const
std::string m_sCommunicatorClientName
Definition GloOrderMsg.h:1256
void setSendDirection(EnSendDirection eSendDirection)
void deleteSecondAdditionalInfo(OrderMsg::EnOrderType eOrderType)
void setSecondAdditionalInfo(void *pSecondAdditionalInfo)
void setOrderResult(void *pOrderResult)
std::string getCommunicatorClientName() const
int m_iErr
Definition GloOrderMsg.h:1230
void deleteFirstAdditionalInfo()
OrderMsg::EnOrderType getOrderType() const
NUM_PTR getThreadID() const
unsigned int getOrderMsgID() const
OrderMsg(const std::string &rsSchemaName, EnOrderType eOrderType, void *pOrderObject, void *pFirstAdditionalInfo=nullptr)
std::string m_sSchemaName
Definition GloOrderMsg.h:1205
OrderMsg::EnOrderType m_eOrderType
Definition GloOrderMsg.h:1291
EnStreamOrderDataType
Definition GloOrderMsg.h:1072
void setOrderType(OrderMsg::EnOrderType eOrderType)
bool m_bFirstAdditionalInfoModified
Definition GloOrderMsg.h:1428
void * getSecondAdditionalInfo() const
void * getFirstAdditionalInfo() const
int setDataFromStream(const eut::Blob &rBlob, std::size_t &rnCurrentBlobPosition, std::size_t &rnBlobPosition, void *&prData, EnStreamDataType eStreamDataType, const std::map< unsigned long, ClassInfo * > *pSchemaInfoMap)
void setOrderObject(void *pOrderObject)
Communicator * m_pCommunicator
Definition GloOrderMsg.h:1243
void deleteOrderObject(OrderMsg::EnOrderType eOrderType)
void deleteFirstAdditionalInfo(OrderMsg::EnOrderType eOrderType)
unsigned int getCommunicatorID() const
bool m_bDestroyOrderObject
Definition GloOrderMsg.h:1334
int addStreamDataType(eut::Blob &rBlob, void *pData, EnStreamDataType eStreamDataType, std::map< ObjID, ObjID, std::less< ObjID > > &rReadyRecordMap) const
void deleteOrderResult(OrderMsg::EnOrderType eOrderType)
Communicator * getCommunicator() const
NUM_PTR m_ipThreadID
Definition GloOrderMsg.h:1280
void setFirstAdditionalInfo(void *pFirstAdditionalInfo)
void streamOrderInBlob(eut::Blob &rBlob, EnStreamOrderDataType eStreamOrderDataType) const
bool m_bProcessed
Definition GloOrderMsg.h:1390
unsigned int m_uiCommunicatorID
Definition GloOrderMsg.h:1269
bool willDestroyOrderObjectInDTor() const
std::string getOrderTypeAsStr() const
void setOrderMsgID(unsigned int uiID)
void * m_pOrderResult
Definition GloOrderMsg.h:1379
int streamBlobInOrder(const eut::Blob &rBlob, EnStreamOrderDataType eStreamOrderDataType, const std::map< unsigned long, ClassInfo * > *pSchemaInfoMap)
OrderMsg::EnSendDirection getSendDirection() const
EnStreamDataType
Definition GloOrderMsg.h:1157
@ eOBJID_LIST
Definition GloOrderMsg.h:1174
@ eCLASSINFO
Definition GloOrderMsg.h:1162
@ eDATATYPE
Definition GloOrderMsg.h:1167
@ eSTRING
Definition GloOrderMsg.h:1183
@ eUNSIGNED_INTPTR
Definition GloOrderMsg.h:1186
@ eUNSIGNED_SIZE
Definition GloOrderMsg.h:1188
@ eCLIENTONFO
Definition GloOrderMsg.h:1165
@ eRECORD_MAP
Definition GloOrderMsg.h:1181
@ eALLSET_ITER_RESULT
Definition GloOrderMsg.h:1159
@ eDATATYPELIMITS
Definition GloOrderMsg.h:1168
@ eCOMPARISION_QUERRY_STRUCT
Definition GloOrderMsg.h:1166
@ eRECORD_LIST
Definition GloOrderMsg.h:1180
@ eNOTIFYNOTE_STRUCT
Definition GloOrderMsg.h:1172
@ eLOCKSPEC_STRUCT
Definition GloOrderMsg.h:1171
@ eOBJID
Definition GloOrderMsg.h:1173
@ eRECORD
Definition GloOrderMsg.h:1179
@ eBOOL
Definition GloOrderMsg.h:1161
@ eCLASSINFO_MAP
Definition GloOrderMsg.h:1163
@ eDATATYPELIMITS_VECTOR
Definition GloOrderMsg.h:1169
@ eQUERRY_STRUCT
Definition GloOrderMsg.h:1177
@ eSIGNED
Definition GloOrderMsg.h:1182
@ eSTRING_VECTOR
Definition GloOrderMsg.h:1184
@ eALLSET_STRUCT
Definition GloOrderMsg.h:1160
@ eFLOAT
Definition GloOrderMsg.h:1170
@ eUNSIGNED_LONG
Definition GloOrderMsg.h:1187
@ eRANGE_QUERRY_STRUCT
Definition GloOrderMsg.h:1178
@ eUNSIGNED_INT
Definition GloOrderMsg.h:1185
@ eOBJID_VECTOR
Definition GloOrderMsg.h:1175
@ eOPENSPEC_STRUCT
Definition GloOrderMsg.h:1176
@ eCLIENTINFO_VECTOR
Definition GloOrderMsg.h:1164
unsigned int m_uiID
Definition GloOrderMsg.h:1219
virtual std::string toString() const
bool m_bOrderObjectModified
Definition GloOrderMsg.h:1350
EnSendDirection
Definition GloOrderMsg.h:1104
void * ReleaseOrderResult()
bool m_bSecondAdditionalInfoModified
Definition GloOrderMsg.h:1456
void * m_pFirstAdditionalInfo
Definition GloOrderMsg.h:1411
OrderMsg(const std::string &rsSchemaName, Communicator *pCommunicator, EnOrderType eOrderType, void *pOrderObject, void *pOrderResult, void *pFirstAdditionalInfo, void *pSecondAdditionalInfo)
void * getOrderResult() const
static std::string getOrderTypeAsString(EnOrderType eOrderType)
void * getOrderObject() const
std::string m_strStatus
Definition GloOrderMsg.h:1483
void deleteSecondAdditionalInfo()
void * m_pOrderObject
Definition GloOrderMsg.h:1319
int addStreamData0terminated(eut::Blob &rBlob, const T tData) const
Definition GloOrderMsg.h:2429
EnOrderType
Definition GloOrderMsg.h:105
@ eWATCH_INDEX_READWRITE
Definition GloOrderMsg.h:841
@ eNOTIFY_OBJECT_AS_WRITTEN
Definition GloOrderMsg.h:983
@ eOPEN_ALLSET
Definition GloOrderMsg.h:345
@ eIS_KNOWN_CLASSID
Definition GloOrderMsg.h:263
@ eSET_CURRENT_OBJECT_IN_ALLSET
Definition GloOrderMsg.h:518
@ eREMOVE_INDEX_FILTER
Definition GloOrderMsg.h:446
@ eOPEN_BASE
Definition GloOrderMsg.h:304
@ eGET_INDEXED_OBJIDS_BY_SEARCHVALUE_FROM_ALLSET
Definition GloOrderMsg.h:459
@ eGET_ALL_BASES
Definition GloOrderMsg.h:129
@ eREPAIR_BASE
Definition GloOrderMsg.h:951
@ eGET_CLASSINFO_BY_CLASSID
Definition GloOrderMsg.h:143
@ eABORT_TRANSACTION
Definition GloOrderMsg.h:894
@ eWATCH_CLIENT
Definition GloOrderMsg.h:815
@ eGET
Definition GloOrderMsg.h:574
@ eIS_STORED
Definition GloOrderMsg.h:636
@ eDELETE
Definition GloOrderMsg.h:649
@ eCHECK_OBJID_IN_ALLSET
Definition GloOrderMsg.h:554
@ eGET_PROCESSING_POSSIBILITIES
Definition GloOrderMsg.h:746
@ eRELOCK
Definition GloOrderMsg.h:690
@ eCOMPRESS_BASE
Definition GloOrderMsg.h:937
@ ePROCESS_NOTIFY
Definition GloOrderMsg.h:1001
@ eNOTIFY_CLIENT
Definition GloOrderMsg.h:967
@ eLOCK
Definition GloOrderMsg.h:677
@ eGET_REC
Definition GloOrderMsg.h:596
@ eNEW_CONNECTED_CLIENT
Definition GloOrderMsg.h:1035
@ eGET_SUBCLASS_INFOS
Definition GloOrderMsg.h:198
@ eGET_ALL_CLASS_INFOS
Definition GloOrderMsg.h:250
@ eCLOSE_ALLSET
Definition GloOrderMsg.h:358
@ eGET_ALL_BASECLASS_INFOS
Definition GloOrderMsg.h:237
@ eUNLOCK
Definition GloOrderMsg.h:703
@ eGET_BASECLASS_INFOS
Definition GloOrderMsg.h:211
@ ePROCESS_TRANSACTION
Definition GloOrderMsg.h:909
@ eGET_ALL_DEFAULT_LIMITS
Definition GloOrderMsg.h:171
@ eSTORE
Definition GloOrderMsg.h:623
@ eCLOSE_BASE
Definition GloOrderMsg.h:317
@ eGET_ALL_CLIENTS
Definition GloOrderMsg.h:291
@ eIS_ALLOWED
Definition GloOrderMsg.h:731
@ eGET_OBJID_WITH_OBJECT_FROM_ALLSET
Definition GloOrderMsg.h:376
@ eGET_INDEXED_OBJIDS_BY_COMPARING_FROM_ALLSET
Definition GloOrderMsg.h:472
@ eGET_ALL_SUBCLASS_INFOS
Definition GloOrderMsg.h:224
@ eGET_INDEXED_OBJIDS_BY_RANGE_FROM_ALLSET
Definition GloOrderMsg.h:485
@ eGET_OBJID_FROM_ALLSET
Definition GloOrderMsg.h:389
@ eUNWATCH_CLASS
Definition GloOrderMsg.h:800
@ eSET_INDEX_FILTER_BY_RANGE_IN_ALLSET
Definition GloOrderMsg.h:428
@ eSET_INDEX_FILTER_BY_COMPARING_IN_ALLSET
Definition GloOrderMsg.h:415
@ eBEGIN_TRANSACTION
Definition GloOrderMsg.h:867
@ eWATCH_OBJECT
Definition GloOrderMsg.h:760
@ eREFRESH
Definition GloOrderMsg.h:610
@ eGET_ALLSET_SIZE
Definition GloOrderMsg.h:498
@ eCOMMIT_TRANSACTION
Definition GloOrderMsg.h:880
@ eDELETE_MULTIPLE
Definition GloOrderMsg.h:664
@ eGET_CLASSINFO_BY_CLASSNAME
Definition GloOrderMsg.h:158
@ eWATCH_CLASS
Definition GloOrderMsg.h:787
@ eIS_SUPER_CLASS_FROM
Definition GloOrderMsg.h:276
@ eREINDEX_BASE
Definition GloOrderMsg.h:923
@ eUNWATCH_OBJECT
Definition GloOrderMsg.h:774
@ eDELETE_COMMUNICATOR_WATCHES
Definition GloOrderMsg.h:1018
@ eUNWATCH_CLIENT
Definition GloOrderMsg.h:828
@ eSET_INDEX_FILTER_BY_SEARCHVALUE_IN_ALLSET
Definition GloOrderMsg.h:402
@ eGET_DATATYPE_LIMITS
Definition GloOrderMsg.h:184
@ eASSIGN
Definition GloOrderMsg.h:332
@ eUNWATCH_INDEX_READWRITE
Definition GloOrderMsg.h:854
@ eSET_POSITION_IN_ALLSET
Definition GloOrderMsg.h:536
@ eIS_LOCKED
Definition GloOrderMsg.h:716
void setCommunicator(Communicator *pCommunicator)
void * m_pSecondAdditionalInfo
Definition GloOrderMsg.h:1439
Definition GloAbstractBaseLot.h:49