Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / TAO / tao / Fault_Tolerance_Service.cpp
blobc38de0e1be88f3fe03c4552673ee4057370345dd
1 #include "tao/Fault_Tolerance_Service.h"
2 #include "tao/Services_Activate.h"
3 #include "tao/ORB_Core.h"
4 #include "tao/Client_Strategy_Factory.h"
6 #include "ace/Dynamic_Service.h"
8 #if !defined (__ACE_INLINE__)
9 # include "tao/Fault_Tolerance_Service.inl"
10 #endif /* __ACE_INLINE__ */
12 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
14 TAO_Fault_Tolerance_Service::~TAO_Fault_Tolerance_Service ()
16 delete this->ft_service_callback_;
19 void
20 TAO_Fault_Tolerance_Service::init (TAO_ORB_Core *orb_core)
22 // Look in to the svc conf stuff to get an instance of the
23 // FT_Service.
24 if (this->ft_service_callback_ == nullptr)
26 TAO_Services_Activate *service =
27 ACE_Dynamic_Service <TAO_Services_Activate>::instance ("FT_ClientService_Activate");
29 // Activate the callback
30 if (service)
31 this->ft_service_callback_ = service->activate_services (orb_core);
34 return;
37 TAO_END_VERSIONED_NAMESPACE_DECL