Classes | Functions
User

Classes

struct  FIX::DateTime
 Date and Time stored as a Julian day number and number of milliseconds since midnight. More...
 
class  FIX::UtcTimeStamp
 Date and Time represented in UTC. More...
 
class  FIX::LocalTimeStamp
 Date and Time represented in local time. More...
 
class  FIX::UtcTimeOnly
 Time only represented in UTC. More...
 
class  FIX::LocalTimeOnly
 Time only represented in local time. More...
 
class  FIX::UtcDate
 Date only represented in UTC. More...
 
class  FIX::LocalDate
 Date only represented in local time. More...
 
class  FIX::ThreadedSocketInitiator
 Threaded Socket implementation of Initiator. More...
 

Functions

bool FIX::operator== (const DateTime &lhs, const DateTime &rhs)
 
bool FIX::operator!= (const DateTime &lhs, const DateTime &rhs)
 
bool FIX::operator< (const DateTime &lhs, const DateTime &rhs)
 
bool FIX::operator> (const DateTime &lhs, const DateTime &rhs)
 
bool FIX::operator<= (const DateTime &lhs, const DateTime &rhs)
 
bool FIX::operator>= (const DateTime &lhs, const DateTime &rhs)
 
int FIX::operator- (const DateTime &lhs, const DateTime &rhs)
 Calculate the difference between two DateTime values and return the result as a number of seconds. More...
 

Detailed Description

Function Documentation

bool FIX::operator!= ( const DateTime &  lhs,
const DateTime &  rhs 
)
inline

Definition at line 358 of file FieldTypes.h.

359 {
360  return !(lhs == rhs);
361 }
int FIX::operator- ( const DateTime &  lhs,
const DateTime &  rhs 
)
inline

Calculate the difference between two DateTime values and return the result as a number of seconds.

Definition at line 391 of file FieldTypes.h.

References FIX::DateTime::SECONDS_PER_DAY.

392 {
393  return (DateTime::SECONDS_PER_DAY * (lhs.m_date - rhs.m_date) +
394  // Truncate the millis before subtracting
395  lhs.m_time / 1000 - rhs.m_time / 1000);
396 }
bool FIX::operator< ( const DateTime &  lhs,
const DateTime &  rhs 
)
inline

Definition at line 363 of file FieldTypes.h.

364 {
365  if( lhs.m_date < rhs.m_date )
366  return true;
367  else if( lhs.m_date > rhs.m_date )
368  return false;
369  else if( lhs.m_time < rhs.m_time )
370  return true;
371  return false;
372 }
bool FIX::operator<= ( const DateTime &  lhs,
const DateTime &  rhs 
)
inline

Definition at line 379 of file FieldTypes.h.

380 {
381  return lhs == rhs || lhs < rhs;
382 }
bool FIX::operator== ( const DateTime &  lhs,
const DateTime &  rhs 
)
inline

Definition at line 353 of file FieldTypes.h.

354 {
355  return lhs.m_date == rhs.m_date && lhs.m_time == rhs.m_time;
356 }
bool FIX::operator> ( const DateTime &  lhs,
const DateTime &  rhs 
)
inline

Definition at line 374 of file FieldTypes.h.

375 {
376  return !(lhs == rhs || lhs < rhs);
377 }
bool FIX::operator>= ( const DateTime &  lhs,
const DateTime &  rhs 
)
inline

Definition at line 384 of file FieldTypes.h.

385 {
386  return lhs == rhs || lhs > rhs;
387 }

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