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

FIX::UtcDate Class Reference
[User]

Date only represented in UTC. More...

#include <FieldTypes.h>

Inheritance diagram for FIX::UtcDate:

Inheritance graph
[legend]
Collaboration diagram for FIX::UtcDate:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UtcDate ()
 Defaults to the current date.

 UtcDate (const DateTime &val)
 UtcDate (int date, int month, int year)
 UtcDate (long sec)
 UtcDate (const tm *time)
void setCurrent ()
 Set to the current time.


Detailed Description

Date only represented in UTC.

Definition at line 468 of file FieldTypes.h.


Constructor & Destructor Documentation

FIX::UtcDate::UtcDate  )  [inline]
 

Defaults to the current date.

Definition at line 472 of file FieldTypes.h.

References setCurrent().

00473   {
00474     setCurrent();
00475   }

FIX::UtcDate::UtcDate const DateTime val  )  [inline]
 

Definition at line 477 of file FieldTypes.h.

References FIX::DateTime::clearTime().

00478   : DateTime( val )
00479   {
00480     clearTime();
00481   }

FIX::UtcDate::UtcDate int  date,
int  month,
int  year
[inline]
 

Definition at line 483 of file FieldTypes.h.

00484   : DateTime(year, month, date, 0, 0, 0, 0) {}

FIX::UtcDate::UtcDate long  sec  )  [inline]
 

Definition at line 486 of file FieldTypes.h.

00487   : DateTime( sec / DateTime::SECONDS_PER_DAY, 0 ) {}

FIX::UtcDate::UtcDate const tm *  time  )  [inline]
 

Definition at line 489 of file FieldTypes.h.

References FIX::DateTime::clearTime().

00490   : DateTime( fromTm (*time) )
00491   {
00492     clearTime();
00493   }


Member Function Documentation

void FIX::UtcDate::setCurrent  )  [inline]
 

Set to the current time.

Definition at line 496 of file FieldTypes.h.

References FIX::DateTime::m_date, and FIX::DateTime::now().

Referenced by UtcDate().

00497   {
00498     DateTime d = now();
00499     m_date = d.m_date;
00500   }


The documentation for this class was generated from the following file:
Generated on Mon Jul 24 19:36:43 2006 for QuickFIX by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2001