1 #ifndef INDEPENDENTWEBGUI_H
2 #define INDEPENDENTWEBGUI_H 1
10 #include "xdaq/Application.h"
12 #include "toolbox/lang/Class.h"
14 #include "xdata/Serializable.h"
15 #include "xdata/UnsignedInteger32.h"
16 #include "xdata/InfoSpaceFactory.h"
18 #include "xgi/Method.h"
19 #include "xgi/Input.h"
20 #include "xgi/Output.h"
21 #include "xgi/exception/Exception.h"
35 typedef std::vector<std::pair<std::string, Param_t*> >
ParamVec_t;
36 typedef std::vector<std::pair<std::string, Counter_t*> >
CounterVec_t;
37 typedef std::vector<std::pair<std::string, void*> >
UpdateVec_t;
109 xdata::InfoSpace* infoSpace);
void updateExternalState(std::string newState)
void addCountersToParams()
void addStandardCounter(CString_t &name, Counter_t *counter)
void addStandardParam(CString_t &name, Param_t *param)
void addMonitorCounter(CString_t &name, Counter_t *counter)
std::string currentInternalStateName_
CounterVec_t monitorCounters_
std::string smallAppIcon_
IndependentWebGUI(xdaq::Application *app)
void addDebugParam(CString_t &name, Param_t *param)
xdata::UnsignedInteger32 Counter_t
const std::string CString_t
void setSmallAppIcon(CString_t &icon)
bool isMonitorParam(CString_t &name)
xdata::Serializable Param_t
xdata::ActionListener * itemGroupListener_
void setVersionString(std::string vers)
std::string largeAppIcon_
void defaultWebPage(Input_t *in, Output_t *out)
CounterVec_t standardCounters_
void htmlTable(Input_t *in, Output_t *out, CString_t &title, const ParamVec_t ¶ms)
std::vector< std::pair< std::string, Counter_t * > > CounterVec_t
bool countersAddedToParams_
void addItemChangedListener(CString_t &name, xdata::ActionListener *l)
void addDebugCounter(CString_t &name, Counter_t *counter)
std::vector< std::pair< std::string, void * > > UpdateVec_t
std::string hyperDAQIcon_
void updateInternalState(std::string newState)
virtual ~IndependentWebGUI()
void htmlHead(Input_t *in, Output_t *out, CString_t &pageTitle)
xdata::InfoSpace * monInfoSpace_
void setSmallDbgIcon(CString_t &icon)
CounterVec_t debugCounters_
ParamVec_t monitorParams_
void addParamsToInfoSpace(const ParamVec_t ¶ms, xdata::InfoSpace *infoSpace)
xdata::InfoSpace * appInfoSpace_
void setHyperDAQIcon(CString_t &icon)
xdata::InfoSpace * appInfoSpace()
xgi::exception::Exception XgiException_t
xdata::InfoSpace * monInfoSpace()
std::string smallDbgIcon_
void debugWebPage(Input_t *in, Output_t *out)
std::string smallCtmIcon_
std::string currentExternalStateName_
void addMonitorParam(CString_t &name, Param_t *param)
void setLargeAppIcon(CString_t &icon)
void css(Input_t *in, Output_t *out)
void htmlHeadline(Input_t *in, Output_t *out)
std::vector< std::pair< std::string, Param_t * > > ParamVec_t
ParamVec_t standardParams_
std::string versionString_