Time.cpp File Reference


Detailed Description

Subsystem: X.509 ASN.1 Encoding/Decoding (PKIFX509ASN)

Module: CPKIFTime

Id
Time.cpp 10228 2009-07-20 17:24:10Z agalustyan

Definition in file Time.cpp.

#include "PKIFException.h"
#include "PKIFCommonErrors.h"
#include "ASN1Errors.h"
#include "PKIFTime.h"
#include "Duration.h"
#include "ASN1Helper.h"
#include "PKIX1Implicit88.h"
#include "PKIX1Explicit88.h"
#include "boost/numeric/conversion/cast.hpp"
#include "boost/date_time/posix_time/posix_time.hpp"
#include <iostream>
#include <sstream>
#include <bitset>
#include <iomanip>

Include dependency graph for Time.cpp:

Go to the source code of this file.

Functions

int getInt (CPKIFStringPtr &str, int size)
void fromUtcTime (const char *time_, CPKIFTime &time)
void fromGenTime (const char *time_, CPKIFTime &time)

Variables

_CACDayOfMonthLimitType _CACDayOfMonthLimit []


Function Documentation

void fromGenTime ( const char *  time_,
CPKIFTime time 
)

Interface: External

This is a helper function that converts Generalized time into CPKIFTime

Returns:
None
Exceptions:
CPKIFException(ASN1_INVALID_TIME) 
Parameters:
time_  [in]Buffer containing UCT time
time  [out]A reference to CPKIFTime object

Definition at line 125 of file Time.cpp.

References ASN1_INVALID_TIME, getInt(), CPKIFTime::month(), CPKIFTime::set(), TOOLKIT_ASN, and CPKIFTime::year().

Referenced by CPKIFTime::CPKIFTime().

void fromUtcTime ( const char *  time_,
CPKIFTime time 
)

Interface: Subsystem

This is a helper function that converts UTC time into CPKIFTime

Returns:
None
Exceptions:
CPKIFException(ASN1_INVALID_TIME) 
Parameters:
time_  [in]Buffer containing UCT time
time  [out]A reference to CPKIFTime object

Definition at line 90 of file Time.cpp.

References ASN1_INVALID_TIME, getInt(), CPKIFTime::month(), CPKIFTime::set(), TOOLKIT_ASN, and CPKIFTime::year().

Referenced by CPKIFTime::CPKIFTime().

int getInt ( CPKIFStringPtr str,
int  size 
)

Interface: Subsystem

This is a helper function that converts a string into in integer

Returns:
None
Parameters:
str  [in]A reference to a smart pointer to CPKIFString object that will be converted into an int
size  [out]Size of the string

Definition at line 70 of file Time.cpp.

Referenced by fromGenTime(), and fromUtcTime().


Variable Documentation

Initial value:

 {
    {  0, false }, 
    { 31, false }, 
    { 28, true  }, 
    { 31, false }, 
    { 30, false }, 
    { 31, false }, 
    { 30, false }, 
    { 31, false }, 
    { 31, false }, 
    { 30, false }, 
    { 31, false }, 
    { 30, false }, 
    { 31, false }  
}

Definition at line 25 of file Time.cpp.


Generated on Mon Nov 15 11:19:38 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6