Class DictionaryBuilder
Builder of FIX dictionaries on the base of FAST template.
Inherited Members
Namespace: OnixS.Fix.Fast
Assembly: OnixS.Fix.Engine.dll
Syntax
public class DictionaryBuilder
Constructors
DictionaryBuilder()
Default constructor.
Declaration
public DictionaryBuilder()
DictionaryBuilder(IMessageInfoDictionary, Stream, bool)
Constructor for immediate building of the FIX dictionary.
Declaration
public DictionaryBuilder(IMessageInfoDictionary baseDictionary, Stream templateStream, bool rewindStreamAfterBuild = true)
Parameters
Type | Name | Description |
---|---|---|
IMessageInfoDictionary | baseDictionary | Base FIX dictionary. |
Stream | templateStream | Stream with FAST template. |
bool | rewindStreamAfterBuild | If true (default) rewinds the template stream after building of dictionary to the position, that was before this call. |
Properties
Dictionary
The built FIX dictionary.
Declaration
public IMessageInfoDictionary Dictionary { get; }
Property Value
Type | Description |
---|---|
IMessageInfoDictionary |
Methods
Build(IMessageInfoDictionary, Stream, bool)
Builds FIX dictionary.
Declaration
public DictionaryBuilder Build(IMessageInfoDictionary baseDictionary, Stream templateStream, bool rewindStreamAfterBuild = true)
Parameters
Type | Name | Description |
---|---|---|
IMessageInfoDictionary | baseDictionary | Base FIX dictionary. |
Stream | templateStream | Stream with FAST template. |
bool | rewindStreamAfterBuild | If true (default) rewinds the template stream after building of dictionary to the position, that was before this call. |
Returns
Type | Description |
---|---|
DictionaryBuilder |
BuildDictionary(IMessageInfoDictionary, Stream, bool)
Builds FIX dictionary on the base of the given FAST template.
Declaration
public static IMessageInfoDictionary BuildDictionary(IMessageInfoDictionary baseDictionary, Stream templateStream, bool rewindStreamAfterBuild = true)
Parameters
Type | Name | Description |
---|---|---|
IMessageInfoDictionary | baseDictionary | Base FIX dictionary. |
Stream | templateStream | Stream with FAST template. |
bool | rewindStreamAfterBuild | If true (default) rewinds the template stream after building of dictionary to the position, that was before this call. |
Returns
Type | Description |
---|---|
IMessageInfoDictionary | The generated FIX dictionary. |
Clear()
Clears the builder.
Declaration
public DictionaryBuilder Clear()
Returns
Type | Description |
---|---|
DictionaryBuilder | The builder instance itself. |