B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
Engine::FixFieldsVisitor Class Referenceabstract

#include <B2BITS_FixFieldsContainer.h>

Public Member Functions

bool needsNames () const
 Indicates if the visitor needs field names.
 
virtual void onBeginGroup (int leadingTag, const std::string &leadingFieldName, std::size_t numInGroup)=0
 Called by implementations of the TagValue interface on leading field of a repeating group.
 
virtual void onBeginGroupEntry ()=0
 Called by implementations of the TagValue interface before calling onRegularField on the first field of a repeating group entry.
 
virtual void onBeginHeader ()=0
 Called by the implementations of FIXMessage interface on the very beginning of the message traversal, before calling onRegularField on the BeginString (8).
 
virtual void onBeginTrailer ()=0
 Called by the implementations of FIXMessage interface before calling onRegularField on the first field of the message trailer.
 
virtual void onDataField (int lengthTag, const std::string &lengthFieldName, int dataTag, const std::string &dataFieldName, const Engine::AsciiString &value)=0
 Called by implementations of the TagValue interface on length field, data field pair.
 
virtual void onEndGroup ()=0
 Called by implementations of the TagValue interface after the last entry of the repeating group.
 
virtual void onEndGroupEntry ()=0
 Called by implementations of the TagValue interface after calling onRegularField on the last field of a repeating group entry.
 
virtual void onEndHeader ()=0
 Called by the implementations of FIXMessage interface before calling onRegularField on the first field of the message body.
 
virtual void onEndTrailer ()=0
 Called by the implementations of FIXMessage interface on the very end of the message traversal, after calling onRegularField on the Checksum (10).
 
virtual void onRegularField (int tag, const std::string &fieldName, const Engine::AsciiString &value)=0
 Called by implementations of the TagValue interface on each field that is not a part of length field, data field pair or a leading field of a repeating group.
 
virtual ~FixFieldsVisitor ()=default
 

Protected Member Functions

 FixFieldsVisitor (bool doesNeedNames)
 

Constructor & Destructor Documentation

◆ ~FixFieldsVisitor()

virtual Engine::FixFieldsVisitor::~FixFieldsVisitor ( )
virtualdefault

◆ FixFieldsVisitor()

Engine::FixFieldsVisitor::FixFieldsVisitor ( bool doesNeedNames)
inlineexplicitprotected

Member Function Documentation

◆ needsNames()

bool Engine::FixFieldsVisitor::needsNames ( ) const
inline

Indicates if the visitor needs field names.

This function must always return the same value for a given visitor.

◆ onBeginGroup()

virtual void Engine::FixFieldsVisitor::onBeginGroup ( int leadingTag,
const std::string & leadingFieldName,
std::size_t numInGroup )
pure virtual

Called by implementations of the TagValue interface on leading field of a repeating group.

If a visitor needsNames functions returns false, the leadingFieldName reference an empty string.

◆ onBeginGroupEntry()

virtual void Engine::FixFieldsVisitor::onBeginGroupEntry ( )
pure virtual

Called by implementations of the TagValue interface before calling onRegularField on the first field of a repeating group entry.

◆ onBeginHeader()

virtual void Engine::FixFieldsVisitor::onBeginHeader ( )
pure virtual

Called by the implementations of FIXMessage interface on the very beginning of the message traversal, before calling onRegularField on the BeginString (8).

The implementations of the TagValue interface that do not represent a complete FIX message must not call this function.

◆ onBeginTrailer()

virtual void Engine::FixFieldsVisitor::onBeginTrailer ( )
pure virtual

Called by the implementations of FIXMessage interface before calling onRegularField on the first field of the message trailer.

The implementations of the TagValue interface that do not represent a complete FIX message must not call this function.

◆ onDataField()

virtual void Engine::FixFieldsVisitor::onDataField ( int lengthTag,
const std::string & lengthFieldName,
int dataTag,
const std::string & dataFieldName,
const Engine::AsciiString & value )
pure virtual

Called by implementations of the TagValue interface on length field, data field pair.

If a visitor needsNames functions returns false, the lengthFieldName and dataFieldName reference an empty string.

◆ onEndGroup()

virtual void Engine::FixFieldsVisitor::onEndGroup ( )
pure virtual

Called by implementations of the TagValue interface after the last entry of the repeating group.

◆ onEndGroupEntry()

virtual void Engine::FixFieldsVisitor::onEndGroupEntry ( )
pure virtual

Called by implementations of the TagValue interface after calling onRegularField on the last field of a repeating group entry.

◆ onEndHeader()

virtual void Engine::FixFieldsVisitor::onEndHeader ( )
pure virtual

Called by the implementations of FIXMessage interface before calling onRegularField on the first field of the message body.

The implementations of the TagValue interface that do not represent a complete FIX message must not call this function.

◆ onEndTrailer()

virtual void Engine::FixFieldsVisitor::onEndTrailer ( )
pure virtual

Called by the implementations of FIXMessage interface on the very end of the message traversal, after calling onRegularField on the Checksum (10).

The implementations of the TagValue interface that do not represent a complete FIX message must not call this function.

◆ onRegularField()

virtual void Engine::FixFieldsVisitor::onRegularField ( int tag,
const std::string & fieldName,
const Engine::AsciiString & value )
pure virtual

Called by implementations of the TagValue interface on each field that is not a part of length field, data field pair or a leading field of a repeating group.

If a visitor needsNames functions returns false, the fieldName references an empty string.