CMS 3D CMS Logo

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)
 
void resetValue () override
 
 StringJ ()
 
std::string toString () const override
 
void update (std::string const &newStr)
 
std::string & value ()
 
 ~StringJ () override
 
- 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.

jsoncollector::StringJ::~StringJ ( )
inlineoverride

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 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
void jsoncollector::StringJ::resetValue ( )
inlineoverridevirtual
std::string jsoncollector::StringJ::toString ( ) const
inlineoverridevirtual

Implements jsoncollector::JsonMonitorable.

Definition at line 160 of file JsonMonitorable.h.

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

Definition at line 183 of file JsonMonitorable.h.

References jsoncollector::JsonMonitorable::updates_.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.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(), 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(), MatrixUtil.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.