$treeview $search $mathjax $extrastylesheet
otsdaq
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #include "otsdaq-core/CoreSupervisors/DataManagerSupervisor.h" 00002 #include "otsdaq-core/ConfigurationInterface/ConfigurationManager.h" 00003 #include "otsdaq-core/DataManager/DataManager.h" 00004 #include "otsdaq-core/DataManager/DataManagerSingleton.h" 00005 00006 using namespace ots; 00007 00008 XDAQ_INSTANTIATOR_IMPL(DataManagerSupervisor) 00009 00010 //======================================================================================================================== 00011 DataManagerSupervisor::DataManagerSupervisor(xdaq::ApplicationStub* s) 00012 : CoreSupervisorBase(s) 00013 { 00014 __SUP_COUT__ << "Constructor." << __E__; 00015 00016 CoreSupervisorBase::theStateMachineImplementation_.push_back( 00017 DataManagerSingleton::getInstance<DataManager>( 00018 CorePropertySupervisorBase::getContextTreeNode(), 00019 CorePropertySupervisorBase::getSupervisorConfigurationPath(), 00020 CorePropertySupervisorBase::getSupervisorUID())); 00021 00022 __SUP_COUT__ << "Constructed." << __E__; 00023 } // end constructor() 00024 00025 //======================================================================================================================== 00026 DataManagerSupervisor::~DataManagerSupervisor(void) 00027 { 00028 __SUP_COUT__ << "Destroying..." << std::endl; 00029 00030 DataManagerSingleton::deleteInstance(CorePropertySupervisorBase::getSupervisorUID()); 00031 theStateMachineImplementation_.pop_back(); 00032 00033 __SUP_COUT__ << "Destructed." << __E__; 00034 } // end destructor()