Files
vrpmdv-rtservice/include/RTSMonFrame.h
2024-04-17 09:34:52 +02:00

61 lines
979 B
C++

/*
*/
#include <string>
#include <list>
class RTSMonFrame
{
private:
/* data */
std::string id;
int samplerate;
int sampleperiod;
int downtime;
std::list<std::string> items;
public:
RTSMonFrame(std::string id, int samplerate, int sampleperiod, int downtime) {
this->id = id;
this->samplerate = samplerate;
this->sampleperiod = sampleperiod;
this->downtime = downtime;
}
RTSMonFrame(std::string id) {
this->id = id;
}
RTSMonFrame(RTSMonFrame& rtsMonFrameCopy) {
this->id = rtsMonFrameCopy.GetId();
}
~RTSMonFrame();
void Add(std::string item){
this->items.push_back(item);
}
std::string GetId() {
return this->id;
}
int GetSampleRate() {
return this->samplerate;
}
int GetSamplePeriod(){
return this->sampleperiod;
}
int GetDownTime(){
return this->downtime;
}
std::list<std::string>& GetItems() {
return this->items;
}
};