quickfix_ruby 1.14.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ext/quickfix/Acceptor.cpp +248 -0
- data/ext/quickfix/Acceptor.h +127 -0
- data/ext/quickfix/Allocator.h +9 -0
- data/ext/quickfix/Application.h +127 -0
- data/ext/quickfix/AtomicCount.h +109 -0
- data/ext/quickfix/DOMDocument.h +74 -0
- data/ext/quickfix/DataDictionary.cpp +618 -0
- data/ext/quickfix/DataDictionary.h +539 -0
- data/ext/quickfix/DataDictionaryProvider.cpp +71 -0
- data/ext/quickfix/DataDictionaryProvider.h +70 -0
- data/ext/quickfix/DatabaseConnectionID.h +105 -0
- data/ext/quickfix/DatabaseConnectionPool.h +91 -0
- data/ext/quickfix/Dictionary.cpp +162 -0
- data/ext/quickfix/Dictionary.h +94 -0
- data/ext/quickfix/Event.h +95 -0
- data/ext/quickfix/Exceptions.h +299 -0
- data/ext/quickfix/Field.h +672 -0
- data/ext/quickfix/FieldConvertors.h +863 -0
- data/ext/quickfix/FieldMap.cpp +238 -0
- data/ext/quickfix/FieldMap.h +244 -0
- data/ext/quickfix/FieldNumbers.h +46 -0
- data/ext/quickfix/FieldTypes.cpp +64 -0
- data/ext/quickfix/FieldTypes.h +698 -0
- data/ext/quickfix/Fields.h +31 -0
- data/ext/quickfix/FileLog.cpp +200 -0
- data/ext/quickfix/FileLog.h +112 -0
- data/ext/quickfix/FileStore.cpp +332 -0
- data/ext/quickfix/FileStore.h +129 -0
- data/ext/quickfix/FixFieldNumbers.h +1537 -0
- data/ext/quickfix/FixFields.h +1538 -0
- data/ext/quickfix/FixValues.h +3281 -0
- data/ext/quickfix/FlexLexer.h +188 -0
- data/ext/quickfix/Group.cpp +64 -0
- data/ext/quickfix/Group.h +73 -0
- data/ext/quickfix/HtmlBuilder.h +186 -0
- data/ext/quickfix/HttpConnection.cpp +739 -0
- data/ext/quickfix/HttpConnection.h +78 -0
- data/ext/quickfix/HttpMessage.cpp +149 -0
- data/ext/quickfix/HttpMessage.h +133 -0
- data/ext/quickfix/HttpParser.cpp +49 -0
- data/ext/quickfix/HttpParser.h +54 -0
- data/ext/quickfix/HttpServer.cpp +169 -0
- data/ext/quickfix/HttpServer.h +78 -0
- data/ext/quickfix/Initiator.cpp +289 -0
- data/ext/quickfix/Initiator.h +149 -0
- data/ext/quickfix/Log.cpp +77 -0
- data/ext/quickfix/Log.h +179 -0
- data/ext/quickfix/Message.cpp +580 -0
- data/ext/quickfix/Message.h +370 -0
- data/ext/quickfix/MessageCracker.h +188 -0
- data/ext/quickfix/MessageSorters.cpp +105 -0
- data/ext/quickfix/MessageSorters.h +156 -0
- data/ext/quickfix/MessageStore.cpp +146 -0
- data/ext/quickfix/MessageStore.h +174 -0
- data/ext/quickfix/Mutex.h +131 -0
- data/ext/quickfix/MySQLConnection.h +194 -0
- data/ext/quickfix/MySQLLog.cpp +275 -0
- data/ext/quickfix/MySQLLog.h +145 -0
- data/ext/quickfix/MySQLStore.cpp +331 -0
- data/ext/quickfix/MySQLStore.h +142 -0
- data/ext/quickfix/NullStore.cpp +54 -0
- data/ext/quickfix/NullStore.h +99 -0
- data/ext/quickfix/OdbcConnection.h +266 -0
- data/ext/quickfix/OdbcLog.cpp +252 -0
- data/ext/quickfix/OdbcLog.h +117 -0
- data/ext/quickfix/OdbcStore.cpp +338 -0
- data/ext/quickfix/OdbcStore.h +113 -0
- data/ext/quickfix/PUGIXML_DOMDocument.cpp +112 -0
- data/ext/quickfix/PUGIXML_DOMDocument.h +81 -0
- data/ext/quickfix/Parser.cpp +103 -0
- data/ext/quickfix/Parser.h +57 -0
- data/ext/quickfix/PostgreSQLConnection.h +176 -0
- data/ext/quickfix/PostgreSQLLog.cpp +276 -0
- data/ext/quickfix/PostgreSQLLog.h +144 -0
- data/ext/quickfix/PostgreSQLStore.cpp +334 -0
- data/ext/quickfix/PostgreSQLStore.h +141 -0
- data/ext/quickfix/Queue.h +75 -0
- data/ext/quickfix/QuickfixRuby.cpp +252066 -0
- data/ext/quickfix/QuickfixRuby.h +34 -0
- data/ext/quickfix/Responder.h +43 -0
- data/ext/quickfix/Session.cpp +1487 -0
- data/ext/quickfix/Session.h +335 -0
- data/ext/quickfix/SessionFactory.cpp +274 -0
- data/ext/quickfix/SessionFactory.h +86 -0
- data/ext/quickfix/SessionID.h +170 -0
- data/ext/quickfix/SessionSettings.cpp +189 -0
- data/ext/quickfix/SessionSettings.h +171 -0
- data/ext/quickfix/SessionState.h +231 -0
- data/ext/quickfix/Settings.cpp +100 -0
- data/ext/quickfix/Settings.h +53 -0
- data/ext/quickfix/SharedArray.h +150 -0
- data/ext/quickfix/SocketAcceptor.cpp +222 -0
- data/ext/quickfix/SocketAcceptor.h +75 -0
- data/ext/quickfix/SocketConnection.cpp +238 -0
- data/ext/quickfix/SocketConnection.h +103 -0
- data/ext/quickfix/SocketConnector.cpp +116 -0
- data/ext/quickfix/SocketConnector.h +67 -0
- data/ext/quickfix/SocketInitiator.cpp +260 -0
- data/ext/quickfix/SocketInitiator.h +81 -0
- data/ext/quickfix/SocketMonitor.cpp +335 -0
- data/ext/quickfix/SocketMonitor.h +111 -0
- data/ext/quickfix/SocketServer.cpp +177 -0
- data/ext/quickfix/SocketServer.h +100 -0
- data/ext/quickfix/ThreadedSocketAcceptor.cpp +258 -0
- data/ext/quickfix/ThreadedSocketAcceptor.h +98 -0
- data/ext/quickfix/ThreadedSocketConnection.cpp +209 -0
- data/ext/quickfix/ThreadedSocketConnection.h +82 -0
- data/ext/quickfix/ThreadedSocketInitiator.cpp +268 -0
- data/ext/quickfix/ThreadedSocketInitiator.h +84 -0
- data/ext/quickfix/TimeRange.cpp +173 -0
- data/ext/quickfix/TimeRange.h +258 -0
- data/ext/quickfix/Utility.cpp +537 -0
- data/ext/quickfix/Utility.h +219 -0
- data/ext/quickfix/Values.h +62 -0
- data/ext/quickfix/config.h +0 -0
- data/ext/quickfix/config_windows.h +0 -0
- data/ext/quickfix/extconf.rb +12 -0
- data/ext/quickfix/index.h +37 -0
- data/ext/quickfix/pugiconfig.hpp +72 -0
- data/ext/quickfix/pugixml.cpp +10765 -0
- data/ext/quickfix/pugixml.hpp +1341 -0
- data/ext/quickfix/strptime.h +7 -0
- data/lib/quickfix40.rb +274 -0
- data/lib/quickfix41.rb +351 -0
- data/lib/quickfix42.rb +1184 -0
- data/lib/quickfix43.rb +3504 -0
- data/lib/quickfix44.rb +10721 -0
- data/lib/quickfix50.rb +13426 -0
- data/lib/quickfix50sp1.rb +15629 -0
- data/lib/quickfix50sp2.rb +17068 -0
- data/lib/quickfix_fields.rb +19853 -0
- data/lib/quickfix_ruby.rb +82 -0
- data/lib/quickfixt11.rb +70 -0
- data/spec/FIX40.xml +862 -0
- data/spec/FIX41.xml +1285 -0
- data/spec/FIX42.xml +2746 -0
- data/spec/FIX43.xml +4229 -0
- data/spec/FIX44.xml +6596 -0
- data/spec/FIX50.xml +8137 -0
- data/spec/FIX50SP1.xml +9496 -0
- data/spec/FIX50SP2.xml +10011 -0
- data/spec/FIXT11.xml +313 -0
- data/test/test_DataDictionaryTestCase.rb +268 -0
- data/test/test_DictionaryTestCase.rb +112 -0
- data/test/test_FieldBaseTestCase.rb +24 -0
- data/test/test_MessageTestCase.rb +368 -0
- data/test/test_SessionSettingsTestCase.rb +41 -0
- metadata +193 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
require 'quickfix'
|
2
|
+
require 'quickfix_fields'
|
3
|
+
require 'quickfix40'
|
4
|
+
require 'quickfix41'
|
5
|
+
require 'quickfix42'
|
6
|
+
require 'quickfix43'
|
7
|
+
require 'quickfix44'
|
8
|
+
|
9
|
+
module Quickfix
|
10
|
+
class DataDictionary
|
11
|
+
def getFieldName( field )
|
12
|
+
name = String.new
|
13
|
+
if( _getFieldName(field, name) )
|
14
|
+
return name
|
15
|
+
else
|
16
|
+
return nil
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def getValueName( field, value )
|
21
|
+
name = String.new
|
22
|
+
if( _getValueName(field, value, name) )
|
23
|
+
return name
|
24
|
+
else
|
25
|
+
return nil
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def getFieldTag( field )
|
30
|
+
tag = 0
|
31
|
+
return _getFieldTag(field, tag)
|
32
|
+
end
|
33
|
+
|
34
|
+
def getGroup( msgType, group )
|
35
|
+
delim = 0
|
36
|
+
dictionary = Quickfix::DataDictionary.new
|
37
|
+
delim = _getGroup( msgType, group, delim, dictionary )
|
38
|
+
return nil if delim == nil
|
39
|
+
return [delim, dictionary]
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
class Initiator
|
44
|
+
def start
|
45
|
+
Thread.new { block() }
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
class Acceptor
|
50
|
+
def start
|
51
|
+
Thread.new { block() }
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
class SocketInitiator < SocketInitiatorBase
|
56
|
+
def initialize( application, storeFactory, settings, logFactory = nil )
|
57
|
+
if( logFactory == nil )
|
58
|
+
super( application, storeFactory, settings )
|
59
|
+
else
|
60
|
+
super( application, storeFactory, settings, logFactory )
|
61
|
+
end
|
62
|
+
@application = application;
|
63
|
+
@storeFactory = storeFactory;
|
64
|
+
@settings = settings;
|
65
|
+
@logFactory = logFactory
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
class SocketAcceptor < SocketAcceptorBase
|
70
|
+
def initialize( application, storeFactory, settings, logFactory = nil )
|
71
|
+
if( logFactory == nil )
|
72
|
+
super( application, storeFactory, settings )
|
73
|
+
else
|
74
|
+
super( application, storeFactory, settings, logFactory )
|
75
|
+
end
|
76
|
+
@application = application;
|
77
|
+
@storeFactory = storeFactory;
|
78
|
+
@settings = settings;
|
79
|
+
@logFactory = logFactory
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
data/lib/quickfixt11.rb
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
require 'quickfix'
|
2
|
+
module Quickfix11
|
3
|
+
class Message < Quickfix::Message
|
4
|
+
def initialize
|
5
|
+
super
|
6
|
+
getHeader().setField( Quickfix::BeginString.new("FIXT.1.1") )
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
class Heartbeat < Message
|
11
|
+
def initialize
|
12
|
+
super
|
13
|
+
getHeader().setField( Quickfix::MsgType.new("0") )
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
class TestRequest < Message
|
18
|
+
def initialize
|
19
|
+
super
|
20
|
+
getHeader().setField( Quickfix::MsgType.new("1") )
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
class ResendRequest < Message
|
25
|
+
def initialize
|
26
|
+
super
|
27
|
+
getHeader().setField( Quickfix::MsgType.new("2") )
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
class Reject < Message
|
32
|
+
def initialize
|
33
|
+
super
|
34
|
+
getHeader().setField( Quickfix::MsgType.new("3") )
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
class SequenceReset < Message
|
39
|
+
def initialize
|
40
|
+
super
|
41
|
+
getHeader().setField( Quickfix::MsgType.new("4") )
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
class Logout < Message
|
46
|
+
def initialize
|
47
|
+
super
|
48
|
+
getHeader().setField( Quickfix::MsgType.new("5") )
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
class Logon < Message
|
53
|
+
def initialize
|
54
|
+
super
|
55
|
+
getHeader().setField( Quickfix::MsgType.new("A") )
|
56
|
+
end
|
57
|
+
|
58
|
+
class NoMsgTypes < Quickfix::Group
|
59
|
+
def initialize
|
60
|
+
order = Quickfix::IntArray.new(5)
|
61
|
+
order[0] = 372
|
62
|
+
order[1] = 385
|
63
|
+
order[2] = 1130
|
64
|
+
order[3] = 1131
|
65
|
+
order[4] = 0
|
66
|
+
super(384, 372, order)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|