ContentType.cpp

Go to the documentation of this file.
00001 
00010 #include "ContentType.h"
00011 
00013 struct CPKIFContentTypeImpl
00014 {
00015     CPKIFBufferPtr m_content;
00016     CPKIFOIDPtr m_contentType;
00017 };
00019 
00028 CPKIFContentType::CPKIFContentType()
00029 :m_impl(new CPKIFContentTypeImpl)
00030 {
00031 }
00039 CPKIFContentType::CPKIFContentType(
00041     const CPKIFOIDPtr& oid,
00043     const CPKIFBufferPtr& ciBuf)
00044 :m_impl(new CPKIFContentTypeImpl)
00045 {
00046     SetContent(ciBuf);
00047     SetContentType(oid);
00048 }
00057 CPKIFContentType::~CPKIFContentType()
00058 {
00059     if(m_impl)
00060     {
00061         delete m_impl;
00062         m_impl = NULL;
00063     }
00064 }
00072 void CPKIFContentType::SetContentType(
00074     const CPKIFOIDPtr& contentType)
00075 {
00076     if(m_impl)
00077     {
00078         m_impl->m_contentType = contentType;
00079     }
00080 }
00088 CPKIFOIDPtr CPKIFContentType::GetContentType() const
00089 {
00090     return m_impl->m_contentType;
00091 }
00099 void CPKIFContentType::SetContent(
00101     const CPKIFBufferPtr& content)
00102 {
00103     if(m_impl)
00104     {
00105         m_impl->m_content = content;
00106     }
00107 }
00115 CPKIFBufferPtr CPKIFContentType::GetContent() const
00116 {
00117     return m_impl->m_content;
00118 }

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