13 #ifndef _parse_xmas2dqm_wse_Application_h_
14 #define _parse_xmas2dqm_wse_Application_h_
19 #include "toolbox/ActionListener.h"
20 #include "toolbox/task/AsynchronousEventDispatcher.h"
22 #include "xdaq/ApplicationDescriptorImpl.h"
23 #include "xdaq/Application.h"
24 #include "xdaq/ApplicationContext.h"
26 #include "xdata/String.h"
27 #include "xdata/Vector.h"
28 #include "xdata/Boolean.h"
29 #include "xdata/ActionListener.h"
31 #include "xoap/MessageReference.h"
32 #include "xoap/MessageFactory.h"
33 #include "xoap/SOAPEnvelope.h"
34 #include "xoap/SOAPBody.h"
35 #include "xoap/domutils.h"
36 #include "xoap/Method.h"
37 #include "xdata/UnsignedInteger64.h"
39 #include "ws/addressing/EndpointReference.h"
41 #include "xgi/Method.h"
42 #include "xgi/Utils.h"
43 #include "xgi/exception/Exception.h"
47 #include "xdaq/ContextTable.h"
49 #include "xdaq/NamespaceURI.h"
51 #include "toolbox/fsm/FiniteStateMachine.h"
52 #include "toolbox/fsm/FailedEvent.h"
56 #include "toolbox/task/WorkLoopFactory.h"
57 #include "toolbox/task/WaitingWorkLoop.h"
58 #include "toolbox/task/Timer.h"
59 #include "toolbox/task/TimerFactory.h"
61 #include <curl/curl.h>
62 #include <curl/easy.h>
78 class XmasToDQM :
public xdaq::Application,
public toolbox::task::TimerListener,
public xdata::ActionListener
112 xoap::MessageReference
fireEvent (xoap::MessageReference msg)
117 xoap::MessageReference
reset (xoap::MessageReference msg)
142 void stateChanged (toolbox::fsm::FiniteStateMachine & fsm)
173 toolbox::fsm::FiniteStateMachine
fsm_;
void ConfigureAction(toolbox::Event::Reference e)
xoap::MessageReference fireEvent(xoap::MessageReference msg)
xoap::MessageReference report(xoap::MessageReference msg)
Receive metrics from a sensor.
void stateChanged(toolbox::fsm::FiniteStateMachine &fsm)
void failedTransition(toolbox::Event::Reference e)
void actionPerformed(xdata::Event &e)
static void * myrealloc(void *ptr, size_t size)
xmas2dqm::wse::ToDqm * dqmHook_
void HaltAction(toolbox::Event::Reference e)
void SuspendAction(toolbox::Event::Reference e)
void EnableAction(toolbox::Event::Reference e)
void ResumeAction(toolbox::Event::Reference e)
void timeExpired(toolbox::task::TimerEvent &e)
toolbox::task::ActionSignature * LASReadout_
int getEXDR_LAS(xdata::Table *rtable)
bool LASReadoutWorkLoop(toolbox::task::WorkLoop *wl)
xoap::MessageReference reset(xoap::MessageReference msg)
xdata::String LASQueueSize_
char data[epos_bytes_allocation]
toolbox::TimeVal startLASReadout_
XmasToDQM(xdaq::ApplicationStub *s)
static size_t WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data)
toolbox::task::Timer * LASReadoutTimer_
toolbox::fsm::FiniteStateMachine fsm_
void Default(xgi::Input *in, xgi::Output *out)
toolbox::task::WorkLoop * LASReadoutWorkLoop_
tuple size
Write out results.