CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
evf::IndependentWebGUI Class Reference

#include <IndependentWebGUI.h>

Inheritance diagram for evf::IndependentWebGUI:

Public Types

typedef xdata::UnsignedInteger32 Counter_t
 
typedef std::vector< std::pair
< std::string, Counter_t * > > 
CounterVec_t
 
typedef const std::string CString_t
 
typedef xgi::Input Input_t
 
typedef xgi::Output Output_t
 
typedef xdata::Serializable Param_t
 
typedef std::vector< std::pair
< std::string, Param_t * > > 
ParamVec_t
 
typedef std::vector< std::pair
< std::string, void * > > 
UpdateVec_t
 
typedef xgi::exception::Exception XgiException_t
 

Public Member Functions

void addDebugCounter (CString_t &name, Counter_t *counter)
 
void addDebugParam (CString_t &name, Param_t *param)
 
void addItemChangedListener (CString_t &name, xdata::ActionListener *l)
 
void addMonitorCounter (CString_t &name, Counter_t *counter)
 
void addMonitorParam (CString_t &name, Param_t *param)
 
void addStandardCounter (CString_t &name, Counter_t *counter)
 
void addStandardParam (CString_t &name, Param_t *param)
 
xdata::InfoSpace * appInfoSpace ()
 
void css (Input_t *in, Output_t *out) throw (XgiException_t)
 
void debugWebPage (Input_t *in, Output_t *out) throw (XgiException_t)
 
void defaultWebPage (Input_t *in, Output_t *out) throw (XgiException_t)
 
void exportParameters ()
 
void htmlHead (Input_t *in, Output_t *out, CString_t &pageTitle)
 
void htmlHeadline (Input_t *in, Output_t *out)
 
void htmlTable (Input_t *in, Output_t *out, CString_t &title, const ParamVec_t &params)
 
 IndependentWebGUI (xdaq::Application *app)
 
xdata::InfoSpace * monInfoSpace ()
 
void resetCounters ()
 
void setHyperDAQIcon (CString_t &icon)
 
void setLargeAppIcon (CString_t &icon)
 
void setSmallAppIcon (CString_t &icon)
 
void setSmallDbgIcon (CString_t &icon)
 
void setVersionString (std::string vers)
 
void updateExternalState (std::string newState)
 
void updateInternalState (std::string newState)
 
virtual ~IndependentWebGUI ()
 

Private Member Functions

void addCountersToParams ()
 
void addParamsToInfoSpace (const ParamVec_t &params, xdata::InfoSpace *infoSpace)
 
bool isMonitorParam (CString_t &name)
 
void updateParams ()
 

Private Attributes

xdaq::Application * app_
 
xdata::InfoSpace * appInfoSpace_
 
bool countersAddedToParams_
 
Css css_
 
std::string currentExternalStateName_
 
std::string currentInternalStateName_
 
CounterVec_t debugCounters_
 
ParamVec_t debugParams_
 
std::string hyperDAQIcon_
 
xdata::ActionListener * itemGroupListener_
 
std::string largeAppIcon_
 
Logger log_
 
xdata::InfoSpace * monInfoSpace_
 
CounterVec_t monitorCounters_
 
ParamVec_t monitorParams_
 
bool parametersExported_
 
std::string smallAppIcon_
 
std::string smallCtmIcon_
 
std::string smallDbgIcon_
 
std::string sourceId_
 
CounterVec_t standardCounters_
 
ParamVec_t standardParams_
 
std::string urn_
 
std::string versionString_
 

Detailed Description

Definition at line 28 of file IndependentWebGUI.h.

Member Typedef Documentation

typedef xdata::UnsignedInteger32 evf::IndependentWebGUI::Counter_t

Definition at line 34 of file IndependentWebGUI.h.

typedef std::vector<std::pair<std::string, Counter_t*> > evf::IndependentWebGUI::CounterVec_t

Definition at line 36 of file IndependentWebGUI.h.

typedef const std::string evf::IndependentWebGUI::CString_t

Definition at line 40 of file IndependentWebGUI.h.

Definition at line 38 of file IndependentWebGUI.h.

Definition at line 39 of file IndependentWebGUI.h.

typedef xdata::Serializable evf::IndependentWebGUI::Param_t

Definition at line 33 of file IndependentWebGUI.h.

typedef std::vector<std::pair<std::string, Param_t*> > evf::IndependentWebGUI::ParamVec_t

Definition at line 35 of file IndependentWebGUI.h.

typedef std::vector<std::pair<std::string, void*> > evf::IndependentWebGUI::UpdateVec_t

Definition at line 37 of file IndependentWebGUI.h.

typedef xgi::exception::Exception evf::IndependentWebGUI::XgiException_t

Definition at line 41 of file IndependentWebGUI.h.

Constructor & Destructor Documentation

IndependentWebGUI::IndependentWebGUI ( xdaq::Application *  app)

Definition at line 33 of file IndependentWebGUI.cc.

References app_, appInfoSpace(), appInfoSpace_, css(), debugWebPage(), defaultWebPage(), instance, itemGroupListener_, largeAppIcon_, monInfoSpace(), monInfoSpace_, sourceId_, and urn_.

34  : app_(app)
35  , log_(app->getApplicationContext()->getLogger())
36  , appInfoSpace_(0)
37  , monInfoSpace_(0)
39  , parametersExported_(false)
40  , countersAddedToParams_(false)
41  , largeAppIcon_("/evf/images/rbicon.jpg")
42  , smallAppIcon_("/evf/images/rbicon.jpg")
43  , smallDbgIcon_("/evf/images/bugicon.jpg")
44  , smallCtmIcon_("/evf/images/spoticon.jpg")
45  , hyperDAQIcon_("/hyperdaq/images/HyperDAQ.jpg")
48  , versionString_("__version string not set__")
49 {
50  // initialize application information
51  string appClass=app_->getApplicationDescriptor()->getClassName();
52  unsigned int instance=app_->getApplicationDescriptor()->getInstance();
53  stringstream oss;
54  oss<<appClass<<instance;
55 
56  sourceId_=oss.str();
57  urn_ ="/"+app_->getApplicationDescriptor()->getURN();
58 
59  std::stringstream oss2;
60  oss2<<"urn:xdaq-monitorable-"<<appClass;
61  string monInfoSpaceName=oss2.str();
62  toolbox::net::URN urn = app_->createQualifiedInfoSpace(monInfoSpaceName);
63 
64  appInfoSpace_=app_->getApplicationInfoSpace();
65  monInfoSpace_=xdata::getInfoSpaceFactory()->get(urn.toString());
66  app_->getApplicationDescriptor()->setAttribute("icon",largeAppIcon_);
67 
68  // bind xgi callbacks
69  xgi::bind(this,&IndependentWebGUI::defaultWebPage,"defaultWebPage");
70  xgi::bind(this,&IndependentWebGUI::debugWebPage, "debugWebPage");
71  xgi::bind(this,&IndependentWebGUI::css, "styles.css");
72 
73  // set itemGroupListener
74  itemGroupListener_ = dynamic_cast<xdata::ActionListener*>(app_);
75  if (0!=itemGroupListener_) {
76  appInfoSpace()->addGroupRetrieveListener(itemGroupListener_);
77  monInfoSpace()->addGroupRetrieveListener(itemGroupListener_);
78  }
79 }
std::string currentInternalStateName_
static PFTauRenderPlugin instance
xdaq::Application * app_
xdata::ActionListener * itemGroupListener_
void defaultWebPage(Input_t *in, Output_t *out)
xdata::InfoSpace * monInfoSpace_
xdata::InfoSpace * appInfoSpace_
xdata::InfoSpace * appInfoSpace()
xdata::InfoSpace * monInfoSpace()
void debugWebPage(Input_t *in, Output_t *out)
std::string currentExternalStateName_
void css(Input_t *in, Output_t *out)
IndependentWebGUI::~IndependentWebGUI ( )
virtual

Definition at line 83 of file IndependentWebGUI.cc.

84 {
85 
86 }

Member Function Documentation

void IndependentWebGUI::addCountersToParams ( )
private

Definition at line 294 of file IndependentWebGUI.cc.

References countersAddedToParams_, debugCounters_, debugParams_, first, i, monitorCounters_, monitorParams_, edm::second(), standardCounters_, and standardParams_.

Referenced by exportParameters().

295 {
296  if (countersAddedToParams_) return;
297 
298  // standard counters
299  for (unsigned int i=0;i<standardCounters_.size();i++) {
300  standardParams_.push_back(make_pair(standardCounters_[i].first,
302  }
303  // monitor counters
304  for (unsigned int i=0;i<monitorCounters_.size();i++) {
305  monitorParams_.push_back(make_pair(monitorCounters_[i].first,
307  }
308  // debug counters
309  for (unsigned int i=0;i<debugCounters_.size();i++) {
310  debugParams_.push_back(make_pair(debugCounters_[i].first,
312  }
314 }
int i
Definition: DBlmapReader.cc:9
U second(std::pair< T, U > const &p)
bool first
Definition: L1TdeRCT.cc:94
void IndependentWebGUI::addDebugCounter ( CString_t name,
Counter_t counter 
)

Definition at line 192 of file IndependentWebGUI.cc.

References countersAddedToParams_, debugCounters_, log_, and sourceId_.

193 {
195  LOG4CPLUS_ERROR(log_,"can't add debug counter '"<<name
196  <<"' to IndependentWebGUI of "<<sourceId_);
197  }
198  debugCounters_.push_back(make_pair(name,counter));
199 }
void IndependentWebGUI::addDebugParam ( CString_t name,
Param_t param 
)

Definition at line 159 of file IndependentWebGUI.cc.

References debugParams_, log_, and parametersExported_.

160 {
161  if (parametersExported_) {
162  LOG4CPLUS_ERROR(log_,"Failed to add debug parameter '"<<name<<"'.");
163  return;
164  }
165  debugParams_.push_back(make_pair(name,param));
166 }
void IndependentWebGUI::addItemChangedListener ( CString_t name,
xdata::ActionListener *  l 
)

Definition at line 241 of file IndependentWebGUI.cc.

References appInfoSpace(), edm::hlt::Exception, isMonitorParam(), log_, monInfoSpace(), and parametersExported_.

242 {
243  if (!parametersExported_) {
244  LOG4CPLUS_ERROR(log_,"Can't add ItemChangedListener for parameter '"<<name
245  <<"' before IndependentWebGUI::exportParameters() is called.");
246  return;
247  }
248 
249  try {
250  appInfoSpace()->addItemChangedListener(name,l);
251  }
252  catch (xcept::Exception) {
253  LOG4CPLUS_ERROR(log_,"failed to add ItemChangedListener to "
254  <<"application infospace for parameter '"<<name<<"'.");
255  }
256 
257  if (isMonitorParam(name)) {
258  try {
259  monInfoSpace()->addItemChangedListener(name,l);
260  }
261  catch (xcept::Exception) {
262  LOG4CPLUS_ERROR(log_,"failed to add ItemChangedListener to "
263  <<"monitor infospace for parameter '"<<name<<"'.");
264  }
265  }
266 
267 }
bool isMonitorParam(CString_t &name)
xdata::InfoSpace * appInfoSpace()
xdata::InfoSpace * monInfoSpace()
void IndependentWebGUI::addMonitorCounter ( CString_t name,
Counter_t counter 
)

Definition at line 181 of file IndependentWebGUI.cc.

References countersAddedToParams_, log_, monitorCounters_, and sourceId_.

182 {
184  LOG4CPLUS_ERROR(log_,"can't add monitor counter '"<<name
185  <<"' to IndependentWebGUI of "<<sourceId_);
186  }
187  monitorCounters_.push_back(make_pair(name,counter));
188 }
void IndependentWebGUI::addMonitorParam ( CString_t name,
Param_t param 
)

Definition at line 148 of file IndependentWebGUI.cc.

References log_, monitorParams_, and parametersExported_.

149 {
150  if (parametersExported_) {
151  LOG4CPLUS_ERROR(log_,"Failed to add monitor parameter '"<<name<<"'.");
152  return;
153  }
154  monitorParams_.push_back(make_pair(name,param));
155 }
void IndependentWebGUI::addParamsToInfoSpace ( const ParamVec_t params,
xdata::InfoSpace *  infoSpace 
)
private

Definition at line 275 of file IndependentWebGUI.cc.

References alignCSCRings::e, edm::hlt::Exception, i, log_, mergeVDriftHistosByStation::name, and relativeConstraints::value.

Referenced by exportParameters().

277 {
278  for (unsigned int i=0;i<params.size();i++) {
279  string name =params[i].first;
280  Param_t* value=params[i].second;
281  try {
282  infoSpace->fireItemAvailable(name,value);
283  }
284  catch (xcept::Exception &e) {
285  LOG4CPLUS_ERROR(log_,"Can't add parameter '"<<name<<"' to info space '"
286  <<infoSpace->name()<<"': "
287  <<xcept::stdformat_exception_history(e));
288  }
289  }
290 }
int i
Definition: DBlmapReader.cc:9
xdata::Serializable Param_t
void IndependentWebGUI::addStandardCounter ( CString_t name,
Counter_t counter 
)

Definition at line 170 of file IndependentWebGUI.cc.

References countersAddedToParams_, log_, sourceId_, and standardCounters_.

171 {
173  LOG4CPLUS_ERROR(log_,"can't add standard counter '"<<name
174  <<"' to IndependentWebGUI of "<<sourceId_);
175  }
176  standardCounters_.push_back(make_pair(name,counter));
177 }
void IndependentWebGUI::addStandardParam ( CString_t name,
Param_t param 
)

Definition at line 137 of file IndependentWebGUI.cc.

References log_, parametersExported_, and standardParams_.

138 {
139  if (parametersExported_) {
140  LOG4CPLUS_ERROR(log_,"Failed to add standard parameter '"<<name<<"'.");
141  return;
142  }
143  standardParams_.push_back(make_pair(name,param));
144 }
xdata::InfoSpace* evf::IndependentWebGUI::appInfoSpace ( )
inline

Definition at line 69 of file IndependentWebGUI.h.

References appInfoSpace_.

Referenced by addItemChangedListener(), exportParameters(), IndependentWebGUI(), and updateParams().

69  {
70  return appInfoSpace_;
71  }
xdata::InfoSpace * appInfoSpace_
void IndependentWebGUI::css ( Input_t in,
Output_t out 
)
throw (XgiException_t
)

Definition at line 130 of file IndependentWebGUI.cc.

References recoMuon::in, and dbtoconf::out.

Referenced by IndependentWebGUI().

131 {
132  css_.css(in,out);
133 }
void css(xgi::Input *in, xgi::Output *out)
Definition: Css.h:15
tuple out
Definition: dbtoconf.py:99
void IndependentWebGUI::debugWebPage ( Input_t in,
Output_t out 
)
throw (XgiException_t
)

Definition at line 113 of file IndependentWebGUI.cc.

References recoMuon::in, and dbtoconf::out.

Referenced by IndependentWebGUI().

114 {
115  updateParams();
116 
117  *out<<"<html>"<<endl;
118  htmlHead(in,out,sourceId_+" [DEBUG]");
119  *out<<body()<<endl;
121  *out<<"<table cellpadding=\"25\"><tr valign=\"top\"><td>"<<endl;
122  htmlTable(in,out,"Debug Parameters",debugParams_);
123  *out<<"</td></tr></table>"<<endl;
124  *out<<body()<<endl<<"</html>"<<endl;
125  return;
126 }
void htmlTable(Input_t *in, Output_t *out, CString_t &title, const ParamVec_t &params)
void htmlHead(Input_t *in, Output_t *out, CString_t &pageTitle)
tuple out
Definition: dbtoconf.py:99
void htmlHeadline(Input_t *in, Output_t *out)
void IndependentWebGUI::defaultWebPage ( Input_t in,
Output_t out 
)
throw (XgiException_t
)

Definition at line 94 of file IndependentWebGUI.cc.

References recoMuon::in, and dbtoconf::out.

Referenced by IndependentWebGUI().

95 {
96  updateParams();
97 
98  *out<<"<html>"<<endl;
100  *out<<body()<<endl;
102  *out<<"<table cellpadding=\"25\"><tr valign=\"top\"><td>"<<endl;
103  htmlTable(in,out,"Standard Parameters",standardParams_);
104  *out<<"</td><td>"<<endl;
105  htmlTable(in,out,"Monitored Parameters",monitorParams_);
106  *out<<"</td></tr></table>"<<endl;
107  *out<<body()<<endl<<"</html>"<<endl;
108  return;
109 }
void htmlTable(Input_t *in, Output_t *out, CString_t &title, const ParamVec_t &params)
void htmlHead(Input_t *in, Output_t *out, CString_t &pageTitle)
tuple out
Definition: dbtoconf.py:99
void htmlHeadline(Input_t *in, Output_t *out)
void IndependentWebGUI::exportParameters ( )

Definition at line 203 of file IndependentWebGUI.cc.

References addCountersToParams(), addParamsToInfoSpace(), appInfoSpace(), countersAddedToParams_, debugParams_, monInfoSpace(), monitorParams_, parametersExported_, and standardParams_.

204 {
205  if (parametersExported_) return;
206 
208 
212 
214 
215  parametersExported_=true;
216 }
void addParamsToInfoSpace(const ParamVec_t &params, xdata::InfoSpace *infoSpace)
xdata::InfoSpace * appInfoSpace()
xdata::InfoSpace * monInfoSpace()
void IndependentWebGUI::htmlHead ( Input_t in,
Output_t out,
CString_t pageTitle 
)

Definition at line 368 of file IndependentWebGUI.cc.

References link(), indexGen::title, and urn_.

369 {
370  *out<<head()<<endl<<cgicc::link().set("type","text/css")
371  .set("rel","stylesheet")
372  .set("href",urn_+"/styles.css")
373  <<endl<<title(pageTitle.c_str())<<endl<<head()<<endl;
374 }
std::string link(std::string &nm, std::string &ns)
Definition: hierarchy.cc:24
tuple out
Definition: dbtoconf.py:99
void IndependentWebGUI::htmlHeadline ( Input_t in,
Output_t out 
)

Definition at line 378 of file IndependentWebGUI.cc.

References a, b, currentExternalStateName_, currentInternalStateName_, hyperDAQIcon_, largeAppIcon_, AlCaHLTBitMon_ParallelJobs::p, smallAppIcon_, smallCtmIcon_, smallDbgIcon_, sourceId_, asciidump::table, urn_, BeamSplash_cfg::version, and versionString_.

379 {
380  string externalStateName=currentExternalStateName_;
381  string internalStateName=currentInternalStateName_;
382  string version=versionString_;
383 
384  *out<<table().set("border","0").set("width","100%")<<endl
385  <<tr()<<td().set("align","left")<<endl
386  <<img().set("align","middle").set("src",largeAppIcon_)
387  .set("alt","main") .set("width","64")
388  .set("height","64") .set("border","")
389  <<endl
390  <<b()<<sourceId_<<b()
391  <<td()<<endl
392  <<td()<<endl
393  <<a().set("style", "font-size:x-large")<<currentExternalStateName_<<a()
394  <<b().set("style", "font-size:small")<<" / "<<currentInternalStateName_<<b()
395  <<td()<<endl
396  <<td().set("width","32")<<endl
397  <<a().set("href","/urn:xdaq-application:lid=3")
398  <<img().set("align","middle").set("src",hyperDAQIcon_)
399  .set("alt","HyperDAQ").set("width","32")
400  .set("height","32") .set("border","")
401  <<a()
402  <<td()<<endl
403  <<td().set("width","32")<<td()
404  <<td().set("width","32")
405  <<a().set("href",urn_+"/defaultWebPage")
406  <<img().set("align","middle").set("src",smallAppIcon_)
407  .set("alt","Debug") .set("width","32")
408  .set("height","32") .set("border","")
409  <<a()
410  <<td()<<endl
411  <<td().set("width","32")<<td()
412  <<td().set("width","32")
413  <<a().set("href",urn_+"/debugWebPage")
414  <<img().set("align","middle").set("src",smallDbgIcon_)
415  .set("alt","Debug") .set("width","32")
416  .set("height","32") .set("border","")
417  <<a()
418  <<td()<<endl
419  <<td().set("width","32")<<td()
420  <<td().set("width","32")
421  <<a().set("href",urn_+"/customWebPage")
422  <<img().set("align","middle").set("src",smallCtmIcon_)
423  .set("alt","Debug") .set("width","32")
424  .set("height","32") .set("border","")
425  <<a()
426  <<td()<<tr()<<table()<<endl;
427 
428  *out<<p().set("style", "font-size:small").set("align", "right")<<version<<p()<<endl;
429  *out<<hr()<<endl;
430 }
list table
Definition: asciidump.py:386
std::string currentInternalStateName_
tuple out
Definition: dbtoconf.py:99
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
std::string currentExternalStateName_
void IndependentWebGUI::htmlTable ( Input_t in,
Output_t out,
CString_t title,
const ParamVec_t params 
)

Definition at line 338 of file IndependentWebGUI.cc.

References alignCSCRings::e, edm::hlt::Exception, first, i, and asciidump::table.

340 {
341  *out<<table().set("frame","void").set("rules","rows")
342  .set("class","modules").set("width","300")<<endl
343  <<tr()<<th(title).set("colspan","2")<<tr()<<endl
344  <<tr()
345  <<th("Parameter").set("align","left")
346  <<th("Value").set("align","right")
347  <<tr()
348  <<endl;
349 
350  for (unsigned int i=0;i<params.size();i++) {
351  string valueAsString;
352  try {
353  valueAsString = params[i].second->toString();
354  }
355  catch (xcept::Exception& e) {
356  valueAsString = e.what();
357  }
358  *out<<tr()
359  <<td(params[i].first).set("align","left")
360  <<td(valueAsString).set("align","right")
361  <<tr()<<endl;
362  }
363  *out<<table()<<endl;
364 }
list table
Definition: asciidump.py:386
int i
Definition: DBlmapReader.cc:9
bool first
Definition: L1TdeRCT.cc:94
tuple out
Definition: dbtoconf.py:99
bool IndependentWebGUI::isMonitorParam ( CString_t name)
private

Definition at line 318 of file IndependentWebGUI.cc.

References monitorParams_.

Referenced by addItemChangedListener().

319 {
320  ParamVec_t::const_iterator it;
321  for (it=monitorParams_.begin();it!=monitorParams_.end();++it)
322  if (it->first==name) return true;
323  return false;
324 }
xdata::InfoSpace* evf::IndependentWebGUI::monInfoSpace ( )
inline
void IndependentWebGUI::resetCounters ( )

Definition at line 220 of file IndependentWebGUI.cc.

References debugCounters_, i, monitorCounters_, and standardCounters_.

Referenced by evf::rb_statemachine::SharedResources::reset().

221 {
222  // standard counters
223  for (unsigned int i=0;i<standardCounters_.size();i++) {
224  Counter_t* counter=standardCounters_[i].second;
225  *counter=0;
226  }
227  // monitor counters
228  for (unsigned int i=0;i<monitorCounters_.size();i++) {
229  Counter_t* counter=monitorCounters_[i].second;
230  *counter=0;
231  }
232  // debug counters
233  for (unsigned int i=0;i<debugCounters_.size();i++) {
234  Counter_t* counter=debugCounters_[i].second;
235  *counter=0;
236  }
237 }
int i
Definition: DBlmapReader.cc:9
xdata::UnsignedInteger32 Counter_t
void evf::IndependentWebGUI::setHyperDAQIcon ( CString_t icon)
inline

Definition at line 85 of file IndependentWebGUI.h.

References hyperDAQIcon_.

85  {
86  hyperDAQIcon_ = icon;
87  }
void evf::IndependentWebGUI::setLargeAppIcon ( CString_t icon)
inline

Definition at line 76 of file IndependentWebGUI.h.

References largeAppIcon_.

76  {
77  largeAppIcon_ = icon;
78  }
void evf::IndependentWebGUI::setSmallAppIcon ( CString_t icon)
inline

Definition at line 79 of file IndependentWebGUI.h.

References smallAppIcon_.

79  {
80  smallAppIcon_ = icon;
81  }
void evf::IndependentWebGUI::setSmallDbgIcon ( CString_t icon)
inline

Definition at line 82 of file IndependentWebGUI.h.

References smallDbgIcon_.

82  {
83  smallDbgIcon_ = icon;
84  }
void evf::IndependentWebGUI::setVersionString ( std::string  vers)
inline

Definition at line 100 of file IndependentWebGUI.h.

References versionString_.

100  {
101  versionString_ = vers;
102  }
void evf::IndependentWebGUI::updateExternalState ( std::string  newState)
inline

Definition at line 94 of file IndependentWebGUI.h.

References currentExternalStateName_.

Referenced by evf::rb_statemachine::SharedResources::updateGUIExternalState().

94  {
95  currentExternalStateName_ = newState;
96  }
std::string currentExternalStateName_
void evf::IndependentWebGUI::updateInternalState ( std::string  newState)
inline

Definition at line 97 of file IndependentWebGUI.h.

References currentInternalStateName_.

Referenced by evf::rb_statemachine::SharedResources::updateGUIInternalState().

97  {
98  currentInternalStateName_ = newState;
99  }
std::string currentInternalStateName_
void IndependentWebGUI::updateParams ( )
private

Definition at line 328 of file IndependentWebGUI.cc.

References appInfoSpace(), and itemGroupListener_.

329 {
330  if (0!=itemGroupListener_) {
331  std::list<std::string> emptyList;
332  appInfoSpace()->fireItemGroupRetrieve(emptyList,itemGroupListener_);
333  }
334 }
xdata::ActionListener * itemGroupListener_
xdata::InfoSpace * appInfoSpace()

Member Data Documentation

xdaq::Application* evf::IndependentWebGUI::app_
private

Definition at line 118 of file IndependentWebGUI.h.

Referenced by IndependentWebGUI().

xdata::InfoSpace* evf::IndependentWebGUI::appInfoSpace_
private

Definition at line 125 of file IndependentWebGUI.h.

Referenced by appInfoSpace(), and IndependentWebGUI().

bool evf::IndependentWebGUI::countersAddedToParams_
private
Css evf::IndependentWebGUI::css_
private

Definition at line 119 of file IndependentWebGUI.h.

std::string evf::IndependentWebGUI::currentExternalStateName_
private

Definition at line 146 of file IndependentWebGUI.h.

Referenced by htmlHeadline(), and updateExternalState().

std::string evf::IndependentWebGUI::currentInternalStateName_
private

Definition at line 147 of file IndependentWebGUI.h.

Referenced by htmlHeadline(), and updateInternalState().

CounterVec_t evf::IndependentWebGUI::debugCounters_
private

Definition at line 135 of file IndependentWebGUI.h.

Referenced by addCountersToParams(), addDebugCounter(), and resetCounters().

ParamVec_t evf::IndependentWebGUI::debugParams_
private

Definition at line 132 of file IndependentWebGUI.h.

Referenced by addCountersToParams(), addDebugParam(), and exportParameters().

std::string evf::IndependentWebGUI::hyperDAQIcon_
private

Definition at line 144 of file IndependentWebGUI.h.

Referenced by htmlHeadline(), and setHyperDAQIcon().

xdata::ActionListener* evf::IndependentWebGUI::itemGroupListener_
private

Definition at line 128 of file IndependentWebGUI.h.

Referenced by IndependentWebGUI(), and updateParams().

std::string evf::IndependentWebGUI::largeAppIcon_
private

Definition at line 140 of file IndependentWebGUI.h.

Referenced by htmlHeadline(), IndependentWebGUI(), and setLargeAppIcon().

Logger evf::IndependentWebGUI::log_
private
xdata::InfoSpace* evf::IndependentWebGUI::monInfoSpace_
private

Definition at line 126 of file IndependentWebGUI.h.

Referenced by IndependentWebGUI(), and monInfoSpace().

CounterVec_t evf::IndependentWebGUI::monitorCounters_
private

Definition at line 134 of file IndependentWebGUI.h.

Referenced by addCountersToParams(), addMonitorCounter(), and resetCounters().

ParamVec_t evf::IndependentWebGUI::monitorParams_
private
bool evf::IndependentWebGUI::parametersExported_
private
std::string evf::IndependentWebGUI::smallAppIcon_
private

Definition at line 141 of file IndependentWebGUI.h.

Referenced by htmlHeadline(), and setSmallAppIcon().

std::string evf::IndependentWebGUI::smallCtmIcon_
private

Definition at line 143 of file IndependentWebGUI.h.

Referenced by htmlHeadline().

std::string evf::IndependentWebGUI::smallDbgIcon_
private

Definition at line 142 of file IndependentWebGUI.h.

Referenced by htmlHeadline(), and setSmallDbgIcon().

std::string evf::IndependentWebGUI::sourceId_
private
CounterVec_t evf::IndependentWebGUI::standardCounters_
private

Definition at line 133 of file IndependentWebGUI.h.

Referenced by addCountersToParams(), addStandardCounter(), and resetCounters().

ParamVec_t evf::IndependentWebGUI::standardParams_
private

Definition at line 130 of file IndependentWebGUI.h.

Referenced by addCountersToParams(), addStandardParam(), and exportParameters().

std::string evf::IndependentWebGUI::urn_
private

Definition at line 123 of file IndependentWebGUI.h.

Referenced by htmlHead(), htmlHeadline(), and IndependentWebGUI().

std::string evf::IndependentWebGUI::versionString_
private

Definition at line 148 of file IndependentWebGUI.h.

Referenced by htmlHeadline(), and setVersionString().