Base class for iterating over fields of FIXMessage.
More...
#include <B2BITS_FixFieldsContainer.h>
Base class for iterating over fields of FIXMessage.
For instance the following code prints all fields of the message to std::cout
struct MessageDumper: public FixFieldsFunctor { void operator()(int tag, const Engine::AsciiString& value, int role) { std::cout << tag << '=' << value.data() << std::endl; } };
FIXMessage* msg; // fill it in MessageDumper dumper; msg->apply(dumper);
◆ ~FixFieldsFunctor()
virtual Engine::FixFieldsFunctor::~FixFieldsFunctor |
( |
| ) |
|
|
inlinevirtual |
◆ needsRole()
virtual bool Engine::FixFieldsFunctor::needsRole |
( |
| ) |
const |
|
inlinevirtual |
◆ operator()()
virtual void Engine::FixFieldsFunctor::operator() |
( |
int | tag, |
|
|
const Engine::AsciiString & | value, |
|
|
int | role ) |
|
pure virtual |
operate on a field of a FIXMessage
- Parameters
-
tag | |
value | non-owning reference to the value valid within the call. |
role | field role (FixField::FieldRole) |