FIX::StringField Class Reference

MSC doesn't support partial template specialization so we have this. More...

`#include <Field.h>`

Inheritance diagram for FIX::StringField:
[legend]
Collaboration diagram for FIX::StringField:
[legend]

## Public Member Functions

| StringField (int field, const std::string &data)
| StringField (int field)
void | setValue (const std::string &value)
const std::string & | getValue () const
| operator const std::string & () const
bool | operator< (const StringField &rhs) const
bool | operator> (const StringField &rhs) const
bool | operator== (const StringField &rhs) const
bool | operator!= (const StringField &rhs) const
bool | operator<= (const StringField &rhs) const
bool | operator>= (const StringField &rhs) const
Public Member Functions inherited from FIX::FieldBase
| FieldBase (int tag, const std::string &string)
virtual | ~FieldBase ()
| FieldBase (const FieldBase &rhs)
FieldBase & | operator= (const FieldBase &rhs)
void | swap (FieldBase &rhs)
void | setTag (int tag)
void | setField (int field)
void | setString (const std::string &string)
int | getTag () const
| Get the fields integer tag.
int | getField () const
const std::string & | getString () const
| Get the string representation of the fields value.
const std::string & | getFixString () const
| Get the string representation of the Field (i.e.) 55=MSFT[SOH].
size_t | getLength () const
| Get the length of the fields string representation.
int | getTotal () const
| Get the total value the fields characters added together.
bool | operator< (const FieldBase &field) const
| Compares fields based on their tag numbers.

## Friends

bool | operator< (const StringField &, const char *)
bool | operator< (const char *, const StringField &)
bool | operator> (const StringField &, const char *)
bool | operator> (const char *, const StringField &)
bool | operator== (const StringField &, const char *)
bool | operator== (const char *, const StringField &)
bool | operator!= (const StringField &, const char *)
bool | operator!= (const char *, const StringField &)
bool | operator<= (const StringField &, const char *)
bool | operator<= (const char *, const StringField &)
bool | operator>= (const StringField &, const char *)
bool | operator>= (const char *, const StringField &)
bool | operator< (const StringField &, const std::string &)
bool | operator< (const std::string &, const StringField &)
bool | operator> (const StringField &, const std::string &)
bool | operator> (const std::string &, const StringField &)
bool | operator== (const StringField &, const std::string &)
bool | operator== (const std::string &, const StringField &)
bool | operator!= (const StringField &, const std::string &)
bool | operator!= (const std::string &, const StringField &)
bool | operator<= (const StringField &, const std::string &)
bool | operator<= (const std::string &, const StringField &)
bool | operator>= (const StringField &, const std::string &)
bool | operator>= (const std::string &, const StringField &)

## Detailed Description

MSC doesn't support partial template specialization so we have this.

this is here to provide equality checking against native char arrays.

Definition at line 258 of file Field.h.

## Constructor & Destructor Documentation

## StringField() [1/2]

FIX::StringField::StringField | ( | int | field,
|  | const std::string & | data
| ) |  |

inline explicit

Definition at line 261 of file Field.h.

: FieldBase( field, data ) {}
FIX::FieldBase::FieldBase
FieldBase(int tag, std::string::const_iterator valueStart, std::string::const_iterator valueEnd, std::string::const_iterator tagStart, std::string::const_iterator tagEnd)
Constructor which also calculates field metrics.
Definition Field.h:80

## StringField() [2/2]

FIX::StringField::StringField | ( | int | field | ) |

inline

Definition at line 263 of file Field.h.

: FieldBase( field, "" ) {}

## Member Function Documentation

## getValue()

const std::string & FIX::StringField::getValue | ( |  | ) | const

inline

Definition at line 268 of file Field.h.

{ return getString(); }
FIX::FieldBase::getString
const std::string & getString() const
Get the string representation of the fields value.
Definition Field.h:152

References FIX::FieldBase::getString().

## operator const std::string &()

FIX::StringField::operator const std::string & | ( |  | ) | const

inline

Definition at line 270 of file Field.h.

{ return getString(); }

References FIX::FieldBase::getString().

## operator!=()

bool FIX::StringField::operator!= | ( | const StringField & | rhs | ) | const

inline

Definition at line 279 of file Field.h.

{ return getString() != rhs.getString(); }

References FIX::FieldBase::getString().

## operator<()

bool FIX::StringField::operator< | ( | const StringField & | rhs | ) | const

inline

Definition at line 273 of file Field.h.

{ return getString() < rhs.getString(); }

References FIX::FieldBase::getString().

## operator<=()

bool FIX::StringField::operator<= | ( | const StringField & | rhs | ) | const

inline

Definition at line 281 of file Field.h.

{ return getString() <= rhs.getString(); }

References FIX::FieldBase::getString().

## operator==()

bool FIX::StringField::operator== | ( | const StringField & | rhs | ) | const

inline

Definition at line 277 of file Field.h.

{ return getString() == rhs.getString(); }

References FIX::FieldBase::getString().

## operator>()

bool FIX::StringField::operator> | ( | const StringField & | rhs | ) | const

inline

Definition at line 275 of file Field.h.

{ return getString() > rhs.getString(); }

References FIX::FieldBase::getString().

## operator>=()

bool FIX::StringField::operator>= | ( | const StringField & | rhs | ) | const

inline

Definition at line 283 of file Field.h.

{ return getString() >= rhs.getString(); }

References FIX::FieldBase::getString().

## setValue()

void FIX::StringField::setValue | ( | const std::string & | value | ) |

inline

Definition at line 266 of file Field.h.

{ setString( value ); }
FIX::FieldBase::setString
void setString(const std::string &string)
Definition Field.h:136

References FIX::FieldBase::setString().

## Friends And Related Symbol Documentation

## operator!= [1/4]

bool operator!= | ( | const char * | lhs,
|  | const StringField & | rhs
| ) |  |

friend

Definition at line 326 of file Field.h.

{ return lhs != rhs.getValue(); }

## operator!= [2/4]

bool operator!= | ( | const std::string & | lhs,
|  | const StringField & | rhs
| ) |  |

friend

Definition at line 351 of file Field.h.

{ return lhs != rhs.getValue(); }

## operator!= [3/4]

bool operator!= | ( | const StringField & | lhs,
|  | const char * | rhs
| ) |  |

friend

Definition at line 324 of file Field.h.

{ return lhs.getValue() != rhs; }

## operator!= [4/4]

bool operator!= | ( | const StringField & | lhs,
|  | const std::string & | rhs
| ) |  |

friend

Definition at line 349 of file Field.h.

{ return lhs.getValue() != rhs; }

## operator< [1/4]

bool operator< | ( | const char * | lhs,
|  | const StringField & | rhs
| ) |  |

friend

Definition at line 314 of file Field.h.

{ return lhs < rhs.getValue(); }

## operator< [2/4]

bool operator< | ( | const std::string & | lhs,
|  | const StringField & | rhs
| ) |  |

friend

Definition at line 339 of file Field.h.

{ return lhs < rhs.getValue(); }

## operator< [3/4]

bool operator< | ( | const StringField & | lhs,
|  | const char * | rhs
| ) |  |

friend

Definition at line 312 of file Field.h.

{ return lhs.getValue() < rhs; }

## operator< [4/4]

bool operator< | ( | const StringField & | lhs,
|  | const std::string & | rhs
| ) |  |

friend

Definition at line 337 of file Field.h.

{ return lhs.getValue() < rhs; }

## operator<= [1/4]

bool operator<= | ( | const char * | lhs,
|  | const StringField & | rhs
| ) |  |

friend

Definition at line 330 of file Field.h.

{ return lhs <= rhs.getValue(); }

## operator<= [2/4]

bool operator<= | ( | const std::string & | lhs,
|  | const StringField & | rhs
| ) |  |

friend

Definition at line 355 of file Field.h.

{ return lhs <= rhs.getValue(); }

## operator<= [3/4]

bool operator<= | ( | const StringField & | lhs,
|  | const char * | rhs
| ) |  |

friend

Definition at line 328 of file Field.h.

{ return lhs.getValue() <= rhs; }

## operator<= [4/4]

bool operator<= | ( | const StringField & | lhs,
|  | const std::string & | rhs
| ) |  |

friend

Definition at line 353 of file Field.h.

{ return lhs.getValue() <= rhs; }

## operator== [1/4]

bool operator== | ( | const char * | lhs,
|  | const StringField & | rhs
| ) |  |

friend

Definition at line 322 of file Field.h.

{ return lhs == rhs.getValue(); }

## operator== [2/4]

bool operator== | ( | const std::string & | lhs,
|  | const StringField & | rhs
| ) |  |

friend

Definition at line 347 of file Field.h.

{ return lhs == rhs.getValue(); }

## operator== [3/4]

bool operator== | ( | const StringField & | lhs,
|  | const char * | rhs
| ) |  |

friend

Definition at line 320 of file Field.h.

{ return lhs.getValue() == rhs; }

## operator== [4/4]

bool operator== | ( | const StringField & | lhs,
|  | const std::string & | rhs
| ) |  |

friend

Definition at line 345 of file Field.h.

{ return lhs.getValue() == rhs; }

## operator> [1/4]

bool operator> | ( | const char * | lhs,
|  | const StringField & | rhs
| ) |  |

friend

Definition at line 318 of file Field.h.

{ return lhs > rhs.getValue(); }

## operator> [2/4]

bool operator> | ( | const std::string & | lhs,
|  | const StringField & | rhs
| ) |  |

friend

Definition at line 343 of file Field.h.

{ return lhs > rhs.getValue(); }

## operator> [3/4]

bool operator> | ( | const StringField & | lhs,
|  | const char * | rhs
| ) |  |

friend

Definition at line 316 of file Field.h.

{ return lhs.getValue() > rhs; }

## operator> [4/4]

bool operator> | ( | const StringField & | lhs,
|  | const std::string & | rhs
| ) |  |

friend

Definition at line 341 of file Field.h.

{ return lhs.getValue() > rhs; }

## operator>= [1/4]

bool operator>= | ( | const char * | lhs,
|  | const StringField & | rhs
| ) |  |

friend

Definition at line 334 of file Field.h.

{ return lhs >= rhs.getValue(); }

## operator>= [2/4]

bool operator>= | ( | const std::string & | lhs,
|  | const StringField & | rhs
| ) |  |

friend

Definition at line 359 of file Field.h.

{ return lhs >= rhs.getValue(); }

## operator>= [3/4]

bool operator>= | ( | const StringField & | lhs,
|  | const char * | rhs
| ) |  |

friend

Definition at line 332 of file Field.h.

{ return lhs.getValue() >= rhs; }

## operator>= [4/4]

bool operator>= | ( | const StringField & | lhs,
|  | const std::string & | rhs
| ) |  |

friend

Definition at line 357 of file Field.h.

{ return lhs.getValue() >= rhs; }

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

- Field.h