AMPS C/C++ Client Class Reference
AMPS C/C++ Client Version 5.3.4.4
AMPS::FIXShredder Class Reference

Class for parsing a FIX format message into a std::map of keys and values, where the keys and values are represented by AMPS::Field objects. More...

#include <ampsplusplus.hpp>

Public Types

typedef std::map< Message::Field, Message::Fieldmap_type
 Convenience defintion for the std::map specialization used for this class. More...
 

Public Member Functions

 FIXShredder (char fieldSep_=(char) 1)
 Construct an instance of FIXShredder using the specified value as the delimiter between fields. More...
 
map_type toMap (const Message::Field &data)
 Returns the key/value pairs within the message, represented as AMPS::Field objects that contain pointers into the original message. More...
 

Detailed Description

Class for parsing a FIX format message into a std::map of keys and values, where the keys and values are represented by AMPS::Field objects.

This class does not validate the contents of a message, nor does it require any particular format for the keys that it parses. This class is designed for efficiency, so the AMPS::Field objects returned contain pointers to the original parsed message rather than copies.

Member Typedef Documentation

Convenience defintion for the std::map specialization used for this class.

Constructor & Destructor Documentation

AMPS::FIXShredder::FIXShredder ( char  fieldSep_ = (char)1)
inline

Construct an instance of FIXShredder using the specified value as the delimiter between fields.

Parameters
fieldSep_the field delimiter (defaults to 0x01)

Member Function Documentation

map_type AMPS::FIXShredder::toMap ( const Message::Field data)
inline

Returns the key/value pairs within the message, represented as AMPS::Field objects that contain pointers into the original message.

Parameters
datathe data to shred into a map

The documentation for this class was generated from the following file: