CMS 3D CMS Logo

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

#include <JsonMonitorable.h>

Inheritance diagram for jsoncollector::StringJ:
jsoncollector::JsonMonitorable

Public Member Functions

void concatenate (std::string const &added)
 
void operator= (std::string sth)
 
virtual void resetValue ()
 
 StringJ ()
 
virtual std::string toString () const
 
void update (std::string const &newStr)
 
std::string & value ()
 
virtual ~StringJ ()
 
- Public Member Functions inherited from jsoncollector::JsonMonitorable
virtual std::string & getName ()
 
bool getNotSame ()
 
unsigned int getUpdates ()
 
 JsonMonitorable ()
 
virtual void setName (std::string name)
 
virtual ~JsonMonitorable ()
 

Private Attributes

std::string theVar_
 

Additional Inherited Members

- Protected Attributes inherited from jsoncollector::JsonMonitorable
std::string name_
 
bool notSame_
 
unsigned int updates_
 

Detailed Description

Definition at line 153 of file JsonMonitorable.h.

Constructor & Destructor Documentation

jsoncollector::StringJ::StringJ ( )
inline

Definition at line 156 of file JsonMonitorable.h.

virtual jsoncollector::StringJ::~StringJ ( )
inlinevirtual

Definition at line 158 of file JsonMonitorable.h.

158 {}

Member Function Documentation

void jsoncollector::StringJ::concatenate ( std::string const &  added)
inline

Definition at line 176 of file JsonMonitorable.h.

References theVar_, and jsoncollector::JsonMonitorable::updates_.

176  {
177  if (!updates_)
178  theVar_=added;
179  else
180  theVar_+=","+added;
181  updates_++;
182  }
void jsoncollector::StringJ::operator= ( std::string  sth)
inline
virtual void jsoncollector::StringJ::resetValue ( )
inlinevirtual
virtual std::string jsoncollector::StringJ::toString ( ) const
inlinevirtual

Implements jsoncollector::JsonMonitorable.

Definition at line 160 of file JsonMonitorable.h.

References theVar_.

160  {
161  return theVar_;
162  }
void jsoncollector::StringJ::update ( std::string const &  newStr)
inline

Definition at line 183 of file JsonMonitorable.h.

References theVar_, and jsoncollector::JsonMonitorable::updates_.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), jsoncollector::DataPoint::snapGlobal(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

183  {
184  theVar_=newStr;
185  updates_=1;
186  }
std::string& jsoncollector::StringJ::value ( )
inline

Member Data Documentation

std::string jsoncollector::StringJ::theVar_
private

Definition at line 189 of file JsonMonitorable.h.

Referenced by concatenate(), operator=(), resetValue(), toString(), update(), and value().