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 140 of file JsonMonitorable.h.

Constructor & Destructor Documentation

jsoncollector::StringJ::StringJ ( )
inline

Definition at line 142 of file JsonMonitorable.h.

jsoncollector::StringJ::~StringJ ( )
inlineoverride

Definition at line 144 of file JsonMonitorable.h.

144 {}

Member Function Documentation

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

Definition at line 158 of file JsonMonitorable.h.

References jsoncollector::JsonMonitorable::updates_.

158  {
159  if (!updates_)
160  theVar_ = added;
161  else
162  theVar_ += "," + added;
163  updates_++;
164  }
void jsoncollector::StringJ::operator= ( std::string  sth)
inline

Definition at line 152 of file JsonMonitorable.h.

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

152  {
153  theVar_ = sth;
154  updates_ = 1;
155  notSame_ = false;
156  }
void jsoncollector::StringJ::resetValue ( )
inlineoverridevirtual
std::string jsoncollector::StringJ::toString ( ) const
inlineoverridevirtual

Implements jsoncollector::JsonMonitorable.

Definition at line 146 of file JsonMonitorable.h.

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

Definition at line 165 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().

165  {
166  theVar_ = newStr;
167  updates_ = 1;
168  }
std::string& jsoncollector::StringJ::value ( )
inline

Member Data Documentation

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

Definition at line 171 of file JsonMonitorable.h.