otsdaq  v2_05_02_indev
DataManagerSupervisor.cc
1 #include "otsdaq/CoreSupervisors/DataManagerSupervisor.h"
2 #include "otsdaq/ConfigurationInterface/ConfigurationManager.h"
3 #include "otsdaq/DataManager/DataManager.h"
4 #include "otsdaq/DataManager/DataManagerSingleton.h"
5 
6 using namespace ots;
7 
8 XDAQ_INSTANTIATOR_IMPL(DataManagerSupervisor)
9 
10 //==============================================================================
12 {
13  __SUP_COUT__ << "Constructor." << __E__;
14 
15  CoreSupervisorBase::theStateMachineImplementation_.push_back(
16  DataManagerSingleton::getInstance<DataManager>(CorePropertySupervisorBase::getContextTreeNode(),
17  CorePropertySupervisorBase::getSupervisorConfigurationPath(),
18  CorePropertySupervisorBase::getSupervisorUID()));
19 
20  __SUP_COUT__ << "Constructed." << __E__;
21 } // end constructor()
22 
23 //==============================================================================
24 DataManagerSupervisor::~DataManagerSupervisor(void)
25 {
26  __SUP_COUT__ << "Destroying..." << std::endl;
27 
28  DataManagerSingleton::deleteInstance(CorePropertySupervisorBase::getSupervisorUID());
29  theStateMachineImplementation_.pop_back();
30 
31  __SUP_COUT__ << "Destructed." << __E__;
32 } // end destructor()