Class AbstractFixMessage
Inheritance
System.Object
AbstractFixMessage
Implements
System.Collections.Generic.IEnumerable<
TagValue>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: FixAntenna.Message.dll
Syntax
public abstract class AbstractFixMessage : HpExtendedIndexedStorage, IEnumerable<TagValue>, IEnumerable
Constructors
AbstractFixMessage()
Creates an empty message that is engine owned
TBD: protect(hide) the constructor from user access. May bee need to have default constructor for user
and special - for internal usage
TBD: make with default modificator - all oter should use newInstanceFromPool
Declaration
public AbstractFixMessage()
See Also
FixAntenna.Fix.Message.AbstractFixMessage.SetIsUserOwned(System.Boolean)
AbstractFixMessage(Boolean)
Creates an empty message
TBD: make with default modificator - all oter should use newInstanceFromPool
Declaration
public AbstractFixMessage(bool isUserOwned)
Parameters
| Type |
Name |
Description |
| System.Boolean |
isUserOwned |
|
See Also
FixAntenna.Fix.Message.AbstractFixMessage.SetIsUserOwned(System.Boolean)
Fields
ForceCloneOnSend
Declaration
protected bool ForceCloneOnSend
Field Value
| Type |
Description |
| System.Boolean |
|
IsFree
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
IsMessageIncompleteValue
Declaration
protected bool IsMessageIncompleteValue
Field Value
| Type |
Description |
| System.Boolean |
|
IsPreparedMessageValue
Declaration
protected bool IsPreparedMessageValue
Field Value
| Type |
Description |
| System.Boolean |
|
Iterator
Declaration
protected AbstractFixMessage.TagValueIterator Iterator
Field Value
Properties
IsOriginatingFromPool
Declaration
public bool IsOriginatingFromPool { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
Add(TagValue)
Declaration
public int Add(TagValue tagValue)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|
AddAll(FixMessage)
Declaration
protected bool AddAll(FixMessage list)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
CalculateBodyLength()
Calculates body length for collection.
Declaration
public int CalculateBodyLength()
Returns
| Type |
Description |
| System.Int32 |
body length
|
CalculateChecksum()
Declaration
public int CalculateChecksum()
Returns
| Type |
Description |
| System.Int32 |
checksum
|
CanCopyInPlace(Int32, Int32, Int32)
Declaration
protected override bool CanCopyInPlace(int index, int oldLen, int newLen)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| System.Int32 |
oldLen |
|
| System.Int32 |
newLen |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
CanCopyInPlaceNumber(Int32, Int32, Int32)
Declaration
protected override bool CanCopyInPlaceNumber(int index, int oldLen, int newLen)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| System.Int32 |
oldLen |
|
| System.Int32 |
newLen |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
Clear()
Declaration
public override void Clear()
Overrides
DeepCopyTo(FixMessage)
Declaration
public FixMessage DeepCopyTo(FixMessage cloned)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object o)
Parameters
| Type |
Name |
Description |
| System.Object |
o |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetEnumerator()
Declaration
public abstract IEnumerator<TagValue> GetEnumerator()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerator<TagValue> |
|
GetTagIndex(Int32)
Declaration
public override sealed int GetTagIndex(int tag)
Parameters
| Type |
Name |
Description |
| System.Int32 |
tag |
|
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
GetTagLength(Int32)
Declaration
public int GetTagLength(int tag)
Parameters
| Type |
Name |
Description |
| System.Int32 |
tag |
|
Returns
| Type |
Description |
| System.Int32 |
|
GetTagNumAtIndex(Int32)
Declaration
public int GetTagNumAtIndex(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Returns
| Type |
Description |
| System.Int32 |
|
GetTagValueIterator()
Declaration
protected virtual IEnumerator<TagValue> GetTagValueIterator()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerator<TagValue> |
|
IsEmpty()
Declaration
public virtual bool IsEmpty()
Returns
| Type |
Description |
| System.Boolean |
|
IsMessageBufferContinuous()
Declaration
public bool IsMessageBufferContinuous()
Returns
| Type |
Description |
| System.Boolean |
|
IsMessageIncomplete()
Declaration
public bool IsMessageIncomplete()
Returns
| Type |
Description |
| System.Boolean |
|
IsPreparedMessage()
Declaration
public bool IsPreparedMessage()
Returns
| Type |
Description |
| System.Boolean |
|
IsUserOwned()
FixAntenna.Fix.Message.AbstractFixMessage.SetIsUserOwned(System.Boolean)
Declaration
public virtual bool IsUserOwned()
Returns
| Type |
Description |
| System.Boolean |
|
MakeStandalone()
Declaration
protected abstract FixMessage MakeStandalone()
Returns
NotifyInvalidMessage(Int32, Int32)
Declaration
protected abstract IList<IDictionary<int, TagValue>> NotifyInvalidMessage(int rgTag, int rgFirstTag)
Parameters
| Type |
Name |
Description |
| System.Int32 |
rgTag |
|
| System.Int32 |
rgFirstTag |
|
Returns
| Type |
Description |
| System.Collections.Generic.IList<System.Collections.Generic.IDictionary<System.Int32, TagValue>> |
|
RemoveTag(Int32)
Removes a fix field with specified tag from collection.
The methods removes the first occurrence of the specified tag.
Declaration
public override sealed bool RemoveTag(int tag)
Parameters
| Type |
Name |
Description |
| System.Int32 |
tag |
the fix tag.
|
Returns
| Type |
Description |
| System.Boolean |
true if the element was removed.
|
Overrides
Split(Int32)
Utility method that splits current message into the repeating
groups based on first mandatory tag in the repeating
group (always first tag in the repeating group).
Declaration
public IList<FixMessage> Split(int tag)
Parameters
| Type |
Name |
Description |
| System.Int32 |
tag |
the tag number
|
Returns
| Type |
Description |
| System.Collections.Generic.IList<FixMessage> |
List of repeating groups (each one is separate FixMessage)
|
SwitchToStandalone()
Declaration
protected virtual void SwitchToStandalone()
ToByteArray()
Writes field list to array of bytes.
Declaration
public byte[] ToByteArray()
Returns
| Type |
Description |
| System.Byte[] |
byte origBuffer
|
Writes field list to array of bytes.
Declaration
public byte[] ToByteArray(IMaskedTags maskedTags)
Parameters
Returns
| Type |
Description |
| System.Byte[] |
byte origBuffer
|
ToByteArrayAndReturnNextPosition(Byte[], Int32)
Writes the list of field to the origBuffer, and returns the next index.
The SOH symbol is added after each field.
Declaration
public int ToByteArrayAndReturnNextPosition(byte[] dst, int offset)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
dst |
the origBuffer
|
| System.Int32 |
offset |
the offset in origBuffer
|
Returns
| Type |
Description |
| System.Int32 |
|
ToPrintableString()
Converts collection of FIX fields to string. Some fields (by default 554, 925) masked with asterisks.
Declaration
public string ToPrintableString()
Returns
| Type |
Description |
| System.String |
Returns string, where some fields masked with asterisks.
|
Converts collection of FIX fields to string. Some fields (by default 554, 925) masked with asterisks.
Declaration
public string ToPrintableString(IMaskedTags maskedTags)
Parameters
| Type |
Name |
Description |
| IMaskedTags |
maskedTags |
IMaskedTags instance or null (DefaultMaskedTags will be used).
|
Returns
| Type |
Description |
| System.String |
Returns string, where some fields masked with asterisks.
|
ToString()
Converts collection of fix fields to string.
Declaration
public override sealed string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
ToUnmaskedString()
Converts collection of fix fields to string, not masking fields 554, 925.
Declaration
public string ToUnmaskedString()
Returns
| Type |
Description |
| System.String |
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable