TimestampAttributeFactory.cpp

Go to the documentation of this file.
00001 
00009 #include "TimestampAttributeFactory.h"
00010 #include "TimestampAttribute.h"
00011 
00012 #include "ToolkitUtils.h"
00013 #include "components.h"
00014 
00016 struct CPKIFTimestampAttributeFactoryImpl
00017 {
00018 };
00020 
00028 CPKIFTimestampAttributeFactory::CPKIFTimestampAttributeFactory()
00029     :m_impl (new CPKIFTimestampAttributeFactoryImpl)
00030 {
00031     LOG_STRING_DEBUG("CPKIFTimestampAttributeFactory::CPKIFTimestampAttributeFactory()", TOOLKIT_MESSAGE_ASN, 0, this);
00032 }
00040 void CPKIFTimestampAttributeFactory::Initialize() 
00041 {
00042     LOG_STRING_DEBUG("CPKIFTimestampAttributeFactory::Initialize()", TOOLKIT_MESSAGE_ASN, 0, this);
00043 }
00051 CPKIFTimestampAttributeFactory::~CPKIFTimestampAttributeFactory()
00052 {
00053     LOG_STRING_DEBUG("CPKIFTimestampAttributeFactory::~CPKIFTimestampAttributeFactory()", TOOLKIT_MESSAGE_ASN, 0, this);
00054 
00055     delete m_impl;
00056     m_impl = NULL;
00057 }
00058 
00066 /*CPKIFAttributePtr CPKIFTimestampAttributeFactory::create(
00068     const CACCMSAttribute& ext)
00069 {
00070     LOG_STRING_DEBUG("CPKIFTimestampAttributeFactory::create(const CACCMSAttribute& ext)", TOOLKIT_MESSAGE_ASN, 0, this);
00071 
00072     CPKIFTimestampAttributePtr tmp(new CPKIFTimestampAttribute(ext));
00073     return tmp;
00074 }
00075 */
00076 
00084 CPKIFAttributePtr CPKIFTimestampAttributeFactory::create(
00086     const CPKIFBufferPtr& buf)
00087 {
00088     LOG_STRING_DEBUG("CPKIFTimestampAttributeFactory::create(const CACCMSAttribute& ext)", TOOLKIT_MESSAGE_ASN, 0, this);
00089 
00090     CPKIFTimestampAttributePtr tmp(new CPKIFTimestampAttribute(buf));
00091     return tmp;
00092 }
00093 
00094 
00103 const char* CPKIFTimestampAttributeFactory::refOID()
00104 {
00105     return CPKIFTimestampAttribute::extOID;
00106 }

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