CPKIFASNWrapper< T > Class Template Reference

#include <ASN1Helper.h>

Collaboration diagram for CPKIFASNWrapper< T >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<class T>
class CPKIFASNWrapper< T >

CPKIFASNWrapper is a simple template class that encapsulates access of the Objective code in an easier to use vessel.

TSP-enforcing: No

Definition at line 43 of file ASN1Helper.h.


Public Types

typedef T *this_type::* unspecified_bool_type

Public Member Functions

 CPKIFASNWrapper (int(*pEncode)(OOCTXT *, T *, ASN1TagType), int(*pDecode)(OOCTXT *, T *, ASN1TagType, int))
 ~CPKIFASNWrapper ()
T * data () const
T * operator-> () const
 operator unspecified_bool_type () const
bool operator! () const
T * Decode (const unsigned char *buf, int bufLen)
ASN1OpenType * Encode (const T *ptrData)
void clear ()
T * Decode (const ASN1OpenType &encoded_)
void InitContext ()

Member Typedef Documentation

template<class T>
typedef T* this_type::* CPKIFASNWrapper< T >::unspecified_bool_type

Definition at line 92 of file ASN1Helper.h.


Constructor & Destructor Documentation

template<class T>
CPKIFASNWrapper< T >::CPKIFASNWrapper ( int(*)(OOCTXT *, T *, ASN1TagType)  pEncode,
int(*)(OOCTXT *, T *, ASN1TagType, int)  pDecode 
) [inline]

Interface: Subsystem

Constructor that

Returns:
None

Definition at line 55 of file ASN1Helper.h.

template<class T>
CPKIFASNWrapper< T >::~CPKIFASNWrapper (  )  [inline]

Interface: Subsystem

Destructor

Returns:
None

Definition at line 71 of file ASN1Helper.h.

References CPKIFASNWrapper< T >::clear().


Member Function Documentation

template<class T>
T* CPKIFASNWrapper< T >::data (  )  const [inline]

Interface: Subsystem

This function returns a pointer to the object that is being encodes or decoded.

Returns:
Returns a pointer to the object that is being encodes or decoded.

Definition at line 83 of file ASN1Helper.h.

Referenced by CPKIFGeneralName::Decode(), CPKIFContentCollection::Decode(), and CPKIFContentInfo::Decode().

template<class T>
T* CPKIFASNWrapper< T >::operator-> (  )  const [inline]

Interface: Subsystem

-> operator that returns a pointer to the object that is being encodes or decoded.

Returns:
Returns a pointer to the object that is being encodes or decoded.

Definition at line 91 of file ASN1Helper.h.

template<class T>
CPKIFASNWrapper< T >::operator unspecified_bool_type (  )  const [inline]

Definition at line 93 of file ASN1Helper.h.

template<class T>
bool CPKIFASNWrapper< T >::operator! (  )  const [inline]

Interface: Subsystem

! operator that returns true if the object that is being encodes or decoded is NULL false otherwise

Returns:
True if the object that is being encodes or decoded is NULL false otherwise

Definition at line 105 of file ASN1Helper.h.

template<class T>
T* CPKIFASNWrapper< T >::Decode ( const unsigned char *  buf,
int  bufLen 
) [inline]

Interface: Subsystem

Decode function that decodes the appropriate template object

Returns:
None

Definition at line 116 of file ASN1Helper.h.

References COMMON_INVALID_INPUT, and TOOLKIT_ASN.

Referenced by CPKIFGeneralName::Decode(), CPKIFContentCollection::Decode(), CPKIFContentInfo::Decode(), and CPKIFOCSPRequest::GetRequest().

template<class T>
ASN1OpenType* CPKIFASNWrapper< T >::Encode ( const T *  ptrData  )  [inline]

Interface: Subsystem

Encode function that encodes the appropriate template object

Returns:
None

Definition at line 134 of file ASN1Helper.h.

References ASN1_ENCODE_ERROR, and TOOLKIT_ASN.

Referenced by CPKIFSigningTimeAttribute::GetValues(), and CPKIFSigningCertificateAttribute::GetValues().

template<class T>
void CPKIFASNWrapper< T >::clear (  )  [inline]

Interface: Subsystem

This function frees the context used by objective

Returns:
None

Definition at line 161 of file ASN1Helper.h.

References FreeASN1Context().

Referenced by CPKIFASNWrapper< T >::~CPKIFASNWrapper().

template<class T>
T* CPKIFASNWrapper< T >::Decode ( const ASN1OpenType &  encoded_  )  [inline]

Interface: Subsystem

Decode function that decodes the appropriate template object

Returns:
None

Definition at line 180 of file ASN1Helper.h.

References ASN1_DECODE_ERROR, FreeASN1Context(), and TOOLKIT_ASN.

template<class T>
void CPKIFASNWrapper< T >::InitContext (  )  [inline]

Interface: Subsystem

This function initializes objective context

Returns:
None

Definition at line 216 of file ASN1Helper.h.


The documentation for this class was generated from the following file:

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