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::IntJ Class Reference

#include <JsonMonitorable.h>

Inheritance diagram for jsoncollector::IntJ:
jsoncollector::JsonMonitorable

Public Member Functions

void add (long sth)
 
 IntJ ()
 
 IntJ (long val)
 
void operator= (long sth)
 
virtual void resetValue ()
 
virtual std::string toString () const
 
void update (long sth)
 
long & value ()
 
virtual ~IntJ ()
 
- 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

long theVar_
 

Additional Inherited Members

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

Detailed Description

Definition at line 73 of file JsonMonitorable.h.

Constructor & Destructor Documentation

jsoncollector::IntJ::IntJ ( )
inline
jsoncollector::IntJ::IntJ ( long  val)
inline

Definition at line 77 of file JsonMonitorable.h.

virtual jsoncollector::IntJ::~IntJ ( )
inlinevirtual

Definition at line 79 of file JsonMonitorable.h.

79 {}

Member Function Documentation

void jsoncollector::IntJ::add ( long  sth)
inline
void jsoncollector::IntJ::operator= ( long  sth)
inline
virtual void jsoncollector::IntJ::resetValue ( )
inlinevirtual
virtual std::string jsoncollector::IntJ::toString ( ) const
inlinevirtual

Implements jsoncollector::JsonMonitorable.

Definition at line 81 of file JsonMonitorable.h.

References contentValuesCheck::ss, and theVar_.

81  {
82  std::stringstream ss;
83  ss << theVar_;
84  return ss.str();
85  }
void jsoncollector::IntJ::update ( long  sth)
inline

Definition at line 100 of file JsonMonitorable.h.

References jsoncollector::JsonMonitorable::notSame_, theVar_, and 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::snap(), jsoncollector::DataPoint::snapGlobal(), jsoncollector::DataPoint::snapStreamAtomic(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

100  {
101  theVar_=sth;
102  if (updates_ && theVar_!=sth) notSame_=true;
103  updates_++;
104  }
long& jsoncollector::IntJ::value ( )
inline

Definition at line 96 of file JsonMonitorable.h.

References theVar_.

Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), average.Average::average(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), RawEventFileWriterForBU::doOutputEvent(), evf::FastMonitoringService::dowork(), Mixins.UsingBlock::dumpPython(), RawEventFileWriterForBU::endOfLS(), RawEventFileWriterForBU::finishFileWrite(), HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(), L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), RawEventFileWriterForBU::initialize(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Mixins.UsingBlock::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), Vispa.Views.PropertyView.FileProperty::labelDoubleClicked(), jsoncollector::DataPoint::mergeAndRetrieveValue(), and evf::FastMonitoringService::preGlobalEndLumi().

96  {
97  return theVar_;
98  }

Member Data Documentation

long jsoncollector::IntJ::theVar_
private

Definition at line 112 of file JsonMonitorable.h.

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