00001 // <copyright> 00002 // $Revision: 1.2 $ 00003 // 00004 // (c) B2BITS 2006. B2BITS is an abbreviation of 00005 // Business to Business Information Technology Services corporation. 00006 // "Licensor" shall mean B2BITS. 00007 // 00008 // This software is for the use of the paying client of B2BITS (which may be 00009 // a corporation, business area, business unit or single use subject to 00010 // licence terms) to whom it was delivered (the "Licensee")and no other party, 00011 // and any use beyond this business area is contrary to the terms of the licence grant. 00012 // 00013 // The Licensee acknowledges and agrees that the Software and Documentation 00014 // (the "Confidential Information") is confidential and proprietary to 00015 // the Licensor and the Licensee hereby agrees to use the Confidential 00016 // Information only as permitted by the full licence agreement betweeen 00017 // the two parties, to maintain the confidentiality of the Confidential 00018 // Information and not to disclose the confidential information, or any part 00019 // thereof, to any other person, firm or corporation. The Licensee 00020 // acknowledges that disclosure of the Confidential Information may give rise 00021 // to an irreparable injury to the Licensor in-adequately compensable in 00022 // damages. Accordingly the Licensor may seek (without the posting of any 00023 // bond or other security) injunctive relief against the breach of the forgoing 00024 // undertaking of confidentiality and non-disclosure, in addition to any other 00025 // legal remedies which may be available, and the licensee consents to the 00026 // obtaining of such injunctive relief. All of the undertakings and 00027 // obligations relating to confidentiality and non-disclosure, whether 00028 // contained in this section or elsewhere in this agreement, shall survive 00029 // the termination or expiration of this agreement for a period of five (5) 00030 // years. 00031 // 00032 // The Licensor agrees that any information or data received from the Licensee 00033 // in connection with the performance of the support agreement relating to this 00034 // software shall be confidential, will be used only in connection with the 00035 // performance of the Licensor's obligations hereunder, and will not be 00036 // disclosed to third parties, including contractors, without the Licensor's 00037 // express permission in writing. 00038 // 00039 // Information regarding the software may be provided to the Licensee's outside 00040 // auditors and attorneys only to the extent required by their respective 00041 // functions. 00042 // </copyright> 00043 00046 00047 #ifndef __B2BITS_PubEngineDefines_h__ 00048 #define __B2BITS_PubEngineDefines_h__ 00049 00050 #include "B2BITS_PubDictionaryDefines.h" 00051 00052 #include <string> 00053 #include <vector> 00054 #include <map> 00055 #include <set> 00056 #include "B2BITS_V12_Defines.h" 00057 00058 namespace Engine { 00059 00060 class FIXMessage; 00061 00063 enum IntradayLogoutToleranceMode { 00065 ILT_ON = 0, 00067 ILT_OFF, 00069 ILT_NA 00070 }; 00071 00073 enum ForceSeqNumResetMode { 00075 FSNR_ON = 0, 00077 FSNR_OFF, 00079 FSNR_NA 00080 }; 00081 00082 00084 enum MessageStorageType{ 00085 invalid_storageType = 0, 00086 persistent_storageType, 00087 transient_storageType, 00088 total_storageType 00089 }; 00090 00092 enum SocketOpPriority{ 00093 EVEN_SOCKET_OP_PRIORITY = 0, 00094 AGGRESIVE_SEND_SOCKET_OP_PRIORITY 00095 }; 00096 00098 enum UnderlyingProtocol{ 00099 FIX_TCP, 00100 00101 FIXT11_TCP, 00102 FIXT11_FAST_TCP 00103 }; 00104 00106 struct StrCaseInsComp : public std::binary_function< const char*, const char*, bool > 00107 { 00108 bool operator()( const char* lhs, const char* rhs ) const; 00109 }; 00110 00112 typedef std::map< const char*, const char*, StrCaseInsComp > StringProperties; 00113 00115 typedef std::set<std::string> MsgTypes; 00116 00118 struct MsgFilter{ 00123 MsgTypes msgTypes_; 00124 00130 FixFieldsList filter_; 00131 00133 int beginSeqNo_; 00134 00136 int endSeqNo_; 00137 00139 MsgFilter() : beginSeqNo_(1), endSeqNo_(0){} 00140 }; 00141 00142 00143 } // namespace Engine 00144 00146 #define MAX_MSGTYPE_LENGTH 10 00147 00149 #define __B2BITS_USE_TimeBreaker__ 1 00150 00151 #endif // _B2BITS_PubEngineDefines__h_
1.5.6