Provides a convenient way of building messages in FIX format, typically referenced using the typedefs AMPS::FIXBuilder or AMPS::NVFIXBuilder.
More...
|
| _FIXBuilder (char fieldSep_=(char) 1) |
| Construct an instance of _FIXBuilder, using the specified separator between fields. More...
|
|
void | append (const T &tag, const char *value, size_t offset, size_t length) |
| Write a field with the provided tag and value to the message being constructed. More...
|
|
void | append (const T &tag, const std::string &value) |
| Write a field with the provided tag and value to the message being constructed. More...
|
|
std::string | getString () const |
| Returns the current contents of this builder as a string. More...
|
|
void | reset () |
| Clear all data from the builder.
|
|
template<class T>
class AMPS::_FIXBuilder< T >
Provides a convenient way of building messages in FIX format, typically referenced using the typedefs AMPS::FIXBuilder or AMPS::NVFIXBuilder.
This builder simply writes to an underlying std::stringstream
as fields are added. It does not maintain a dictionary of key/value pairs or otherwise attempt to normalize or optimize the message. This also means that the builder is not validating, and does not prevent an application from producing FIX that is semantically invalid, is missing required fields, or that contains unexpected characters.
- Template Parameters
-
T | The type to accept for keys. This type must provide the << operator to write to a std::ostream . |