Asn1Time Class Reference

This class is used for all TIME types that are not one of the useful time types (viz. More...

Inheritance diagram for Asn1Time:
Asn18BitCharString Asn1CharString Asn1Type Asn1TypeIF

List of all members.

Public Member Functions

 Asn1Time ()
override void Decode (Asn1BerDecodeBuffer buffer, bool explicitTagging, int implicitLength)
override void Encode (Asn1BerOutputStream outstr, bool explicitTagging)
override int Encode (Asn1BerEncodeBuffer buffer, bool explicitTagging)

Public Attributes

const int January = 1

Detailed Description

DATE, DATE-TIME, TIME-OF-DAY, DURATION).


Constructor & Destructor Documentation

Asn1Time (  ) 

The default constructor creates an empty string object.


Member Function Documentation

override void Decode ( Asn1BerDecodeBuffer  buffer,
bool  explicitTagging,
int  implicitLength 
) [virtual]

This method decodes an ASN.1 TIME string value including the UNIVERSAL tag value and length if explicit tagging is specified.

Parameters:
buffer Decode message buffer object
explicitTagging Flag indicating element is explicitly tagged
implicitLength Length of contents if implicit

Reimplemented from Asn1Type.

override void Encode ( Asn1BerOutputStream  outstr,
bool  explicitTagging 
) [virtual]

This method encodes and writes to the stream an ASN.1 TIME.

value including the UNIVERSAL tag value and length if explicit tagging is specified. This overloaded version uses the Basic Encoding Rules (BER).

Parameters:
outstr BER Output Stream object
explicitTagging Flag indicating explicit tagging should be done

Reimplemented from Asn1Type.

override int Encode ( Asn1BerEncodeBuffer  buffer,
bool  explicitTagging 
) [virtual]

This method encodes an ASN.1 TIME string type.

The UNIVERSAL tag value and length is also encoded if explicit tagging is specified.

Parameters:
buffer Encode message buffer object
explicitTagging Flag indicating explicit tagging should be done
Returns:
Length in octets of encoded component

Reimplemented from Asn1Type.


Member Data Documentation

const int January = 1

Month constants.

These were defined in what used to be Asn1Time and was renamed to Asn1AbstractTime. They are here to allow backward compatibility so users don't have to modify their code to use Asn1AbstractTime to refer to these constants.