Line data Source code
1 : /* 2 : * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. 3 : */ 4 : 5 : #include "xml/xml_base.h" 6 : #include "xml/xml_pugi.h" 7 : 8 : XmppXmlImplFactory *XmppXmlImplFactory::Inst_ = NULL; 9 : 10 4200354 : XmlBase *XmppXmlImplFactory::GetXmlImpl() { 11 4200354 : return new XmlPugi(); 12 : } 13 : 14 0 : void XmppXmlImplFactory::ReleaseXmlImpl(XmlBase *tmp) { 15 0 : delete tmp; 16 0 : } 17 : 18 4200357 : XmppXmlImplFactory *XmppXmlImplFactory::Instance() { 19 4200357 : if (Inst_ == NULL) 20 360 : Inst_ = new XmppXmlImplFactory(); 21 4200357 : return Inst_; 22 : }