otsdaq_demo  v2_05_02_indev
TemplateSupervisor.cc
1 #include "otsdaq-demo/TemplateDirectory/TemplateSupervisor.h"
2 #include "otsdaq/Macros/CoutMacros.h"
3 #include "otsdaq/MessageFacility/MessageFacility.h"
4 
5 #include <xdaq/NamespaceURI.h>
6 
7 #include <iostream>
8 
9 using namespace ots;
10 
11 XDAQ_INSTANTIATOR_IMPL(TemplateSupervisor)
12 
13 //==============================================================================
14 TemplateSupervisor::TemplateSupervisor(xdaq::ApplicationStub* s)
15  : xdaq::Application(s), SOAPMessenger(this)
16 {
17  INIT_MF("." /*directory used is USER_DATA/LOG/.*/);
18  xgi::bind(this, &TemplateSupervisor::Default, "Default");
19  init();
20 }
21 
22 //==============================================================================
23 TemplateSupervisor::~TemplateSupervisor(void) { destroy(); }
24 //==============================================================================
25 void TemplateSupervisor::init(ConfigurationManager* configManager)
26 {
27  // called by constructor
28 }
29 
30 //==============================================================================
31 void TemplateSupervisor::destroy(void)
32 {
33  // called by destructor
34 }
35 
36 //==============================================================================
37 void TemplateSupervisor::Default(xgi::Input* in, xgi::Output* out)
38 {
39  *out << "<!DOCTYPE HTML><html lang='en'><frameset col='100%' row='100%'><frame "
40  "src='/WebPath/html/Chat.html?urn="
41  << this->getApplicationDescriptor()->getLocalId() << "'></frameset></html>";
42 }