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.

Function Documentation

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

Definition at line 358 of file FieldTypes.h.

{
  return !(lhs == rhs);
}
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::m_date, FIX::DateTime::m_time, and FIX::DateTime::SECONDS_PER_DAY.

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

Definition at line 363 of file FieldTypes.h.

References FIX::DateTime::m_date, and FIX::DateTime::m_time.

{
  if( lhs.m_date < rhs.m_date )
    return true;
  else if( lhs.m_date > rhs.m_date )
    return false;
  else if( lhs.m_time < rhs.m_time )
    return true;
  return false;
}
bool FIX::operator<= ( const DateTime &  lhs,
const DateTime &  rhs 
) [inline]

Definition at line 379 of file FieldTypes.h.

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

Definition at line 353 of file FieldTypes.h.

References FIX::DateTime::m_date, and FIX::DateTime::m_time.

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

Definition at line 374 of file FieldTypes.h.

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

Definition at line 384 of file FieldTypes.h.

{
  return lhs == rhs || lhs > rhs;
}

Generated on Mon Sep 15 2014 01:23:55 for QuickFIX by doxygen 1.7.6.1 written by Dimitri van Heesch, © 1997-2001