![]() |
B2BITS FIX Antenna C++
2.31.0
|
Base class for iterating over fields of FIXMessage. More...
#include <B2BITS_FixFieldsContainer.h>
Public Member Functions | |
virtual bool | needsRole () const |
virtual void | operator() (int tag, const Engine::AsciiString &value, int role)=0 |
operate on a field of a FIXMessage More... | |
virtual | ~FixFieldsFunctor () |
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);
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
operate on a field of a FIXMessage
tag | |
value | non-owning reference to the value valid within the call. |
role | field role (FixField::FieldRole) |