$treeview $search $mathjax $extrastylesheet
otsdaq_components
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #include "otsdaq-components/SlowControlsInterfacePlugins/OtsSlowControlsInterface.h" 00002 #include "otsdaq-core/Macros/SlowControlsPluginMacros.h" 00003 00004 using namespace ots; 00005 00006 OtsSlowControlsInterface::OtsSlowControlsInterface( 00007 const std::string& interfaceUID, 00008 const ConfigurationTree& theXDAQContextConfigTree, 00009 const std::string& controlsConfigurationPath) 00010 //TODO -- listen on a socket for data 00011 // or read from disk 00012 // :Socket ( 00013 // theXDAQContextConfigTree.getNode(interfaceConfigurationPath).getNode("HostIPAddress").getValue<std::string>() 00014 // ,theXDAQContextConfigTree.getNode(interfaceConfigurationPath).getNode("HostPort").getValue<unsigned 00015 // int>()) 00016 // , 00017 : SlowControlsVInterface( 00018 interfaceUID, theXDAQContextConfigTree, controlsConfigurationPath) 00019 { 00020 } 00021 00022 OtsSlowControlsInterface::~OtsSlowControlsInterface() { destroy(); } 00023 00024 void OtsSlowControlsInterface::initialize() {} 00025 00026 void OtsSlowControlsInterface::destroy() {} 00027 00028 std::string OtsSlowControlsInterface::getList(std::string format) 00029 { 00030 //__COUT__ << 00031 // theXDAQContextConfigTree.getNode(controlsConfigurationPath).getValue << 00032 // std::endl; 00033 return (std::string) "list"; 00034 } 00035 void OtsSlowControlsInterface::subscribe(std::string Name) {} 00036 00037 void OtsSlowControlsInterface::subscribeJSON(std::string List) {} 00038 00039 void OtsSlowControlsInterface::unsubscribe(std::string Name) {} 00040 00041 std::array<std::string, 4> OtsSlowControlsInterface::getCurrentValue(std::string Name) 00042 { 00043 return {"a", "b", "c", "d"}; 00044 } 00045 00046 std::array<std::string, 9> OtsSlowControlsInterface::getSettings(std::string Name) 00047 { 00048 return {"a", "b", "c", "d", "e", "f", "g", "h", "i"}; 00049 } 00050 00051 DEFINE_OTS_SLOW_CONTROLS(OtsSlowControlsInterface)