otsdaq  v2_05_02_indev
SimpleSoap.h
1 #ifndef _SimpleSoap_SimpleSoap_h
2 #define _SimpleSoap_SimpleSoap_h
3 
4 #pragma GCC diagnostic push
5 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
6 #include <xdaq/Application.h>
7 #pragma GCC diagnostic pop
8 #include "otsdaq/Macros/XDAQApplicationMacros.h"
9 #include "xgi/Method.h"
10 
11 #include <toolbox/TimeInterval.h>
12 #include <toolbox/fsm/FailedEvent.h>
13 #include <toolbox/fsm/FiniteStateMachine.h>
14 #include <toolbox/task/Timer.h>
15 #include <toolbox/task/TimerFactory.h>
16 #include <toolbox/task/TimerListener.h>
17 #include <xcept/Exception.h>
18 
19 #include <cgicc/HTMLClasses.h>
20 #include <cgicc/HTMLDoctype.h>
21 #include <cgicc/HTTPCookie.h>
22 #include <cgicc/HTTPHeader.h>
23 
24 #include <xdata/String.h>
25 #include "Utilities/SOAPUtilities/include/SOAPMessenger.h"
26 
27 #include <string>
28 
29 namespace ots
30 {
31 class SimpleSoap : public xdaq::Application, public SOAPMessenger
32 {
33  public:
34  XDAQ_INSTANTIATOR();
35 
36  SimpleSoap(xdaq::ApplicationStub* s);
37  void Default(xgi::Input* in, xgi::Output* out);
38  void StateMachineXgiHandler(xgi::Input* in, xgi::Output* out);
39  xoap::MessageReference Start(xoap::MessageReference msg);
40  void stateInitial(toolbox::fsm::FiniteStateMachine& fsm);
41  void stateHalted(toolbox::fsm::FiniteStateMachine& fsm);
42 
43  private:
44  toolbox::fsm::FiniteStateMachine fsm_;
45  xdata::String state_; // used to reflect the current state to the outside world
46  // toolbox::task::WorkLoop * jobcontrolWorkloop_;
47  // toolbox::task::ActionSignature * jobcontrolTask_;
48 };
49 
50 } // namespace ots
51 
52 #endif