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