#include <ContentType.h>
All content types can be encoded or decoded. CPKIFContentType defines two abstract functions, Encode and Decode, to enable applications to encode and decode content types. This class does not provide an implementation of these two functions.
TSP-enforcing: No
Definition at line 33 of file ContentType.h.
Public Member Functions | |
CPKIFContentType () | |
CPKIFContentType (const CPKIFOIDPtr &oid, const CPKIFBufferPtr &ciBuf) | |
virtual | ~CPKIFContentType () |
virtual void | SetContentType (const CPKIFOIDPtr &contentType) |
virtual CPKIFOIDPtr | GetContentType () const |
virtual void | SetContent (const CPKIFBufferPtr &content) |
virtual CPKIFBufferPtr | GetContent () const |
virtual CPKIFBufferPtr | Encode ()=0 |
virtual void | Decode (CPKIFBufferPtr &buf)=0 |
CPKIFContentType::CPKIFContentType | ( | ) |
Interface: External
Default constructor.
Definition at line 28 of file ContentType.cpp.
CPKIFContentType::CPKIFContentType | ( | const CPKIFOIDPtr & | oid, | |
const CPKIFBufferPtr & | ciBuf | |||
) |
Interface: External
This function creates and initializes CPKIFContentType objects.
oid | [in] A reference to a smart pointer tp CPKIFOIDP object identifying content oid |
ciBuf | [in] A reference to a smart pointer tp CPKIFOIDP object containing content value |
Definition at line 39 of file ContentType.cpp.
References SetContent(), and SetContentType().
CPKIFContentType::~CPKIFContentType | ( | ) | [virtual] |
void CPKIFContentType::SetContentType | ( | const CPKIFOIDPtr & | contentType | ) | [virtual] |
Interface: External
This function sets content type.
contentType | [in] A reference to a smart pointer tp CPKIFOID object identifying content type |
Definition at line 72 of file ContentType.cpp.
Referenced by CPKIFContentCollection::CPKIFContentCollection(), CPKIFContentType(), CPKIFContentWithAttributes::CPKIFContentWithAttributes(), CPKIFEncryptedData::CPKIFEncryptedData(), CPKIFEnvelopedData::CPKIFEnvelopedData(), and CPKIFSignedData::CPKIFSignedData().
CPKIFOIDPtr CPKIFContentType::GetContentType | ( | ) | const [virtual] |
Interface: External
This function returns content type.
Reimplemented in CPKIFContentInfo.
Definition at line 88 of file ContentType.cpp.
void CPKIFContentType::SetContent | ( | const CPKIFBufferPtr & | content | ) | [virtual] |
Interface: External
This function sets content value.
content | [in] A reference to a smart pointer tp CPKIFBuffer object containing content value |
Definition at line 99 of file ContentType.cpp.
Referenced by CPKIFContentType().
CPKIFBufferPtr CPKIFContentType::GetContent | ( | ) | const [virtual] |
Interface: External
This function returns CPKIFBuffer obejct with content value.
Reimplemented in CPKIFContentInfo.
Definition at line 115 of file ContentType.cpp.
virtual CPKIFBufferPtr CPKIFContentType::Encode | ( | ) | [pure virtual] |
Implemented in CPKIFContentCollection, CPKIFContentInfo, CPKIFContentWithAttributes, CPKIFEncryptedData, CPKIFEnvelopedData, and CPKIFSignedData.
virtual void CPKIFContentType::Decode | ( | CPKIFBufferPtr & | buf | ) | [pure virtual] |
Implemented in CPKIFContentCollection, CPKIFContentInfo, CPKIFContentWithAttributes, CPKIFEncryptedData, CPKIFEnvelopedData, and CPKIFSignedData.