Public Member Functions | Friends | List of all members
FIX::StringField Class Reference

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

#include <Field.h>

Inheritance diagram for FIX::StringField:
Inheritance graph
[legend]
Collaboration diagram for FIX::StringField:
Collaboration graph
[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)
 
FieldBaseoperator= (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 
)
inlineexplicit

Definition at line 261 of file Field.h.

262: FieldBase( field, data ) {}
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.

264: FieldBase( field, "" ) {}

Member Function Documentation

◆ getValue()

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

Definition at line 268 of file Field.h.

269 { return 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.

271 { return getString(); }

References FIX::FieldBase::getString().

◆ operator!=()

bool FIX::StringField::operator!= ( const StringField rhs) const
inline

Definition at line 279 of file Field.h.

280 { 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.

274 { 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.

282 { 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.

278 { 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.

276 { 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.

284 { 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.

267 { setString( value ); }
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.

327 { 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.

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

◆ operator!= [3/4]

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

Definition at line 324 of file Field.h.

325 { 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.

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

◆ operator< [1/4]

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

Definition at line 314 of file Field.h.

315 { 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.

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

◆ operator< [3/4]

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

Definition at line 312 of file Field.h.

313 { 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.

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

◆ operator<= [1/4]

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

Definition at line 330 of file Field.h.

331 { 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.

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

◆ operator<= [3/4]

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

Definition at line 328 of file Field.h.

329 { 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.

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

◆ operator== [1/4]

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

Definition at line 322 of file Field.h.

323 { 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.

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

◆ operator== [3/4]

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

Definition at line 320 of file Field.h.

321 { 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.

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

◆ operator> [1/4]

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

Definition at line 318 of file Field.h.

319 { 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.

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

◆ operator> [3/4]

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

Definition at line 316 of file Field.h.

317 { 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.

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

◆ operator>= [1/4]

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

Definition at line 334 of file Field.h.

335 { 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.

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

◆ operator>= [3/4]

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

Definition at line 332 of file Field.h.

333 { 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.

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

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

Generated on Mon Mar 4 2024 21:10:02 for QuickFIX by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2001