ContentTypeAttributeFactory.cpp

Go to the documentation of this file.
00001 
00009 #include "ContentTypeAttributeFactory.h"
00010 #include "ToolkitUtils.h"
00011 #include "components.h"
00012 
00013 #include "Attribute.h"
00014 #include "Buffer.h"
00015 #include "ContentTypeAttribute.h"
00016 
00018 struct CPKIFContentTypeAttributeFactoryImpl
00019 {
00020 };
00022 
00030 CPKIFContentTypeAttributeFactory::CPKIFContentTypeAttributeFactory()
00031     :m_impl (new CPKIFContentTypeAttributeFactoryImpl)
00032 {
00033     LOG_STRING_DEBUG("CPKIFContentTypeAttributeFactory::CPKIFContentTypeAttributeFactory()", TOOLKIT_MESSAGE_ASN, 0, this);
00034 }
00042 void CPKIFContentTypeAttributeFactory::Initialize() 
00043 {
00044     LOG_STRING_DEBUG("CPKIFContentTypeAttributeFactory::Initialize()", TOOLKIT_MESSAGE_ASN, 0, this);
00045 }
00053 CPKIFContentTypeAttributeFactory::~CPKIFContentTypeAttributeFactory()
00054 {
00055     LOG_STRING_DEBUG("CPKIFContentTypeAttributeFactory::~CPKIFContentTypeAttributeFactory()", TOOLKIT_MESSAGE_ASN, 0, this);
00056 
00057     delete m_impl;
00058     m_impl = NULL;
00059 }
00067 /*CPKIFAttributePtr CPKIFContentTypeAttributeFactory::create(
00069     const CACCMSAttribute& ext)
00070 {
00071     LOG_STRING_DEBUG("CPKIFContentTypeAttributeFactory::create(const CACCMSAttribute& ext)", TOOLKIT_MESSAGE_ASN, 0, this);
00072 
00073     CPKIFContentTypeAttributePtr tmp(new CPKIFContentTypeAttribute(ext));
00074     return tmp;
00075 }*/
00076 
00084 CPKIFAttributePtr CPKIFContentTypeAttributeFactory::create(
00086     const CPKIFBufferPtr& buf)
00087 {
00088     LOG_STRING_DEBUG("CPKIFContentTypeAttributeFactory::create(const CACCMSAttribute& ext)", TOOLKIT_MESSAGE_ASN, 0, this);
00089 
00090     CPKIFContentTypeAttributePtr tmp(new CPKIFContentTypeAttribute(buf));
00091     return tmp;
00092 }
00093 
00102 const char* CPKIFContentTypeAttributeFactory::refOID()
00103 {
00104     return CPKIFContentTypeAttribute::extOID;
00105 }

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