Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Safir::Time::AceTimeConverter Class Reference

The AceTimeConverter class provides functions to convert to/from ACE time. More...

#include <Safir/Time/AceTimeConverter.h>

Static Public Member Functions

static ACE_Time_Value ToAceTime (const Safir::Dob::Typesystem::Si64::Second time)
 Get specified time in ACE Time representation. More...
 
static ACE_Time_Value ToAceTime (const boost::posix_time::time_duration &duration)
 Get specified boost time duration in ACE Time representation. More...
 
static ACE_Time_Value ToAceTime (const boost::posix_time::ptime &time)
 Get specified boost ptime in ACE Time representation. More...
 
static
Safir::Dob::Typesystem::Si64::Second 
ToDouble (const ACE_Time_Value &time)
 Convert specified ACE time to a Double. More...
 
static boost::posix_time::ptime ToPtime (const ACE_Time_Value &utcTime)
 Get specified ACE time in boost::posix_time::ptime representation. More...
 

Detailed Description

The AceTimeConverter class provides functions to convert to/from ACE time.

Member Function Documentation

ACE_Time_Value Safir::Time::AceTimeConverter::ToAceTime ( const Safir::Dob::Typesystem::Si64::Second  time)
static

Get specified time in ACE Time representation.

Parameters
[in]time- The time
Returns
The time in ACE_Time_Value

Referenced by ToAceTime().

Here is the caller graph for this function:

ACE_Time_Value Safir::Time::AceTimeConverter::ToAceTime ( const boost::posix_time::time_duration &  duration)
static

Get specified boost time duration in ACE Time representation.

Parameters
[in]duration- The time duration
Returns
The time in ACE_Time_Value
ACE_Time_Value Safir::Time::AceTimeConverter::ToAceTime ( const boost::posix_time::ptime &  time)
static

Get specified boost ptime in ACE Time representation.

Parameters
[in]time- The time
Returns
The time in ACE_Time_Value

References ToAceTime(), and Safir::Time::TimeProvider::ToDouble().

Here is the call graph for this function:

Safir::Dob::Typesystem::Si64::Second Safir::Time::AceTimeConverter::ToDouble ( const ACE_Time_Value &  time)
static

Convert specified ACE time to a Double.

Parameters
[in]time- The ACE time
Returns
Seconds and fraction since jan 1 1970 00:00

Referenced by ToPtime().

Here is the caller graph for this function:

boost::posix_time::ptime Safir::Time::AceTimeConverter::ToPtime ( const ACE_Time_Value &  utcTime)
static

Get specified ACE time in boost::posix_time::ptime representation.

Parameters
[in]utcTime- The UTC time
Returns
The UTC time stored in a boost::posix_time::ptime object

References ToDouble(), and Safir::Time::TimeProvider::ToPtime().

Here is the call graph for this function: