Files
2014-06-30 13:58:10 +02:00

66 lines
1.5 KiB
C++

/*
* File: StopMeasuringEvent.h
* Author: noackrob
*
* Created on August 30, 2013, 2:09 PM
*/
#pragma once
#ifndef STOPMEASURINGEVENT_H
#define STOPMEASURINGEVENT_H
#include "simutils/events/MeasuringEvent.h"
namespace ubeeme {
namespace moversight {
/**
* @brief Event: Measuring method used by the PartitionApplication.
*
* @class StopMeasuringEvent
* @author Robert Noack
* @ingroup Moversight
*/
class StopMeasuringEvent : public MeasuringEventGroup<StopMeasuringEvent> {
public:
/**
* @brief Constructor.
* @param s The measurement to stop measuring.
*/
StopMeasuringEvent( const std::string& s)
: measurement(s) {
}
/**
* @brief Destructor
*/
virtual ~StopMeasuringEvent() {
}
void setMeasurement(const std::string & s) {
measurement = s;
}
const std::string& getMeasurement() const {
return measurement;
}
virtual std::string toString() const {
std::stringstream buf;
buf << "StopMeasuringEvent ["
<< "Measurement: " << measurement
<< "]";
return buf.str();
}
private:
std::string measurement;
};
}
}
#endif /* STOPMEASURINGEVENT_H */