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 field, const std::string &string)
 
virtual ~FieldBase ()
 
void setField (int field)
 
void setString (const std::string &string)
 
int getField () const
 Get the fields integer tag. More...
 
const std::string & getString () const
 Get the string representation of the fields value. More...
 
const std::string & getFixString () const
 Get the string representation of the Field (i.e.) 55=MSFT[SOH]. More...
 
int getLength () const
 Get the length of the fields string representation. More...
 
int getTotal () const
 Get the total value the fields characters added together. More...
 
bool operator< (const FieldBase &field) const
 Compares fields based on thier tag numbers. More...
 

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 144 of file Field.h.

Constructor & Destructor Documentation

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

Definition at line 147 of file Field.h.

148 : FieldBase( field, data ) {}
FieldBase(int field, const std::string &string)
Definition: Field.h:49
FIX::StringField::StringField ( int  field)
inline

Definition at line 149 of file Field.h.

150 : FieldBase( field, "" ) {}
FieldBase(int field, const std::string &string)
Definition: Field.h:49

Member Function Documentation

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

Definition at line 154 of file Field.h.

References FIX::FieldBase::getString().

Referenced by FIX::operator!=(), FIX::operator<(), FIX::operator<=(), FIX::operator==(), FIX::operator>(), and FIX::operator>=().

155  { return getString(); }
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:73
FIX::StringField::operator const std::string & ( ) const
inline

Definition at line 156 of file Field.h.

References FIX::FieldBase::getString().

157  { return getString(); }
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:73
bool FIX::StringField::operator!= ( const StringField rhs) const
inline

Definition at line 165 of file Field.h.

References FIX::FieldBase::getString().

166  { return getString() != rhs.getString(); }
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:73
bool FIX::StringField::operator< ( const StringField rhs) const
inline

Definition at line 159 of file Field.h.

References FIX::FieldBase::getString().

160  { return getString() < rhs.getString(); }
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:73
bool FIX::StringField::operator<= ( const StringField rhs) const
inline

Definition at line 167 of file Field.h.

References FIX::FieldBase::getString().

168  { return getString() <= rhs.getString(); }
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:73
bool FIX::StringField::operator== ( const StringField rhs) const
inline

Definition at line 163 of file Field.h.

References FIX::FieldBase::getString().

164  { return getString() == rhs.getString(); }
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:73
bool FIX::StringField::operator> ( const StringField rhs) const
inline

Definition at line 161 of file Field.h.

References FIX::FieldBase::getString().

162  { return getString() > rhs.getString(); }
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:73
bool FIX::StringField::operator>= ( const StringField rhs) const
inline

Definition at line 169 of file Field.h.

References FIX::FieldBase::getString().

170  { return getString() >= rhs.getString(); }
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:73
void FIX::StringField::setValue ( const std::string &  value)
inline

Definition at line 152 of file Field.h.

References FIX::FieldBase::setString().

153  { setString( value ); }
void setString(const std::string &string)
Definition: Field.h:62

Friends And Related Function Documentation

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

Definition at line 210 of file Field.h.

211  { return lhs.getValue() != rhs; }
bool operator!= ( const char *  lhs,
const StringField rhs 
)
friend

Definition at line 212 of file Field.h.

213  { return lhs != rhs.getValue(); }
bool operator!= ( const StringField lhs,
const std::string &  rhs 
)
friend

Definition at line 235 of file Field.h.

236  { return lhs.getValue() != rhs; }
bool operator!= ( const std::string &  lhs,
const StringField rhs 
)
friend

Definition at line 237 of file Field.h.

238  { return lhs != rhs.getValue(); }
bool operator< ( const StringField lhs,
const char *  rhs 
)
friend

Definition at line 198 of file Field.h.

199  { return lhs.getValue() < rhs; }
bool operator< ( const char *  lhs,
const StringField rhs 
)
friend

Definition at line 200 of file Field.h.

201  { return lhs < rhs.getValue(); }
bool operator< ( const StringField lhs,
const std::string &  rhs 
)
friend

Definition at line 223 of file Field.h.

224  { return lhs.getValue() < rhs; }
bool operator< ( const std::string &  lhs,
const StringField rhs 
)
friend

Definition at line 225 of file Field.h.

226  { return lhs < rhs.getValue(); }
bool operator<= ( const StringField lhs,
const char *  rhs 
)
friend

Definition at line 214 of file Field.h.

215  { return lhs.getValue() <= rhs; }
bool operator<= ( const char *  lhs,
const StringField rhs 
)
friend

Definition at line 216 of file Field.h.

217  { return lhs <= rhs.getValue(); }
bool operator<= ( const StringField lhs,
const std::string &  rhs 
)
friend

Definition at line 239 of file Field.h.

240  { return lhs.getValue() <= rhs; }
bool operator<= ( const std::string &  lhs,
const StringField rhs 
)
friend

Definition at line 241 of file Field.h.

242  { return lhs <= rhs.getValue(); }
bool operator== ( const StringField lhs,
const char *  rhs 
)
friend

Definition at line 206 of file Field.h.

207  { return lhs.getValue() == rhs; }
bool operator== ( const char *  lhs,
const StringField rhs 
)
friend

Definition at line 208 of file Field.h.

209  { return lhs == rhs.getValue(); }
bool operator== ( const StringField lhs,
const std::string &  rhs 
)
friend

Definition at line 231 of file Field.h.

232  { return lhs.getValue() == rhs; }
bool operator== ( const std::string &  lhs,
const StringField rhs 
)
friend

Definition at line 233 of file Field.h.

234  { return lhs == rhs.getValue(); }
bool operator> ( const StringField lhs,
const char *  rhs 
)
friend

Definition at line 202 of file Field.h.

203  { return lhs.getValue() > rhs; }
bool operator> ( const char *  lhs,
const StringField rhs 
)
friend

Definition at line 204 of file Field.h.

205  { return lhs > rhs.getValue(); }
bool operator> ( const StringField lhs,
const std::string &  rhs 
)
friend

Definition at line 227 of file Field.h.

228  { return lhs.getValue() > rhs; }
bool operator> ( const std::string &  lhs,
const StringField rhs 
)
friend

Definition at line 229 of file Field.h.

230  { return lhs > rhs.getValue(); }
bool operator>= ( const StringField lhs,
const char *  rhs 
)
friend

Definition at line 218 of file Field.h.

219  { return lhs.getValue() >= rhs; }
bool operator>= ( const char *  lhs,
const StringField rhs 
)
friend

Definition at line 220 of file Field.h.

221  { return lhs >= rhs.getValue(); }
bool operator>= ( const StringField lhs,
const std::string &  rhs 
)
friend

Definition at line 243 of file Field.h.

244  { return lhs.getValue() >= rhs; }
bool operator>= ( const std::string &  lhs,
const StringField rhs 
)
friend

Definition at line 245 of file Field.h.

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

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

Generated on Sat Mar 29 2014 15:13:34 for QuickFIX by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2001