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

Constructor & Destructor Documentation

jsoncollector::StringJ::StringJ ( )
inline

Definition at line 155 of file JsonMonitorable.h.

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

Definition at line 157 of file JsonMonitorable.h.

157 {}

Member Function Documentation

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

Definition at line 175 of file JsonMonitorable.h.

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

175  {
176  if (!updates_)
177  theVar_=added;
178  else
179  theVar_+=","+added;
180  updates_++;
181  }
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 159 of file JsonMonitorable.h.

References theVar_.

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

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

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

Member Data Documentation

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

Definition at line 188 of file JsonMonitorable.h.

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