Index  Source Files  Annotated Class List  Alphabetical Class List  Class Hierarchy  Graphical Class Hierarchy   
 

User


Classes

struct  DateTime
 Date and Time stored as a Julian day number and number of milliseconds since midnight. More...

class  UtcTimeStamp
 Date and Time represented in UTC. More...

class  UtcTimeOnly
 Time only represented in UTC. More...

class  UtcDate
 Date only represented in UTC. More...

class  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 operator!= const DateTime &  lhs,
const DateTime &  rhs
[inline]
 

Definition at line 347 of file FieldTypes.h.

00348 {
00349   return !(lhs == rhs);
00350 }

int 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 380 of file FieldTypes.h.

00381 {
00382   return (DateTime::SECONDS_PER_DAY * (lhs.m_date - rhs.m_date) +
00383           // Truncate the millis before subtracting
00384           lhs.m_time / 1000 - rhs.m_time / 1000);
00385 }

bool operator< const DateTime &  lhs,
const DateTime &  rhs
[inline]
 

Definition at line 352 of file FieldTypes.h.

00353 {
00354   if( lhs.m_date < rhs.m_date )
00355     return true;
00356   else if( lhs.m_date > rhs.m_date )
00357     return false;
00358   else if( lhs.m_time < rhs.m_time )
00359     return true;
00360   return false;
00361 }

bool operator<= const DateTime &  lhs,
const DateTime &  rhs
[inline]
 

Definition at line 368 of file FieldTypes.h.

00369 {
00370   return lhs == rhs || lhs < rhs;
00371 }

bool operator== const DateTime &  lhs,
const DateTime &  rhs
[inline]
 

Definition at line 342 of file FieldTypes.h.

00343 {
00344   return lhs.m_date == rhs.m_date && lhs.m_time == rhs.m_time;
00345 }

bool operator> const DateTime &  lhs,
const DateTime &  rhs
[inline]
 

Definition at line 363 of file FieldTypes.h.

00364 {
00365   return !(lhs == rhs || lhs < rhs);
00366 }

bool operator>= const DateTime &  lhs,
const DateTime &  rhs
[inline]
 

Definition at line 373 of file FieldTypes.h.

00374 {
00375   return lhs == rhs || lhs > rhs;
00376 }


Generated on Mon Jul 24 19:36:32 2006 for QuickFIX by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2001