Files
vrpmdv-rtservice/include/RTSMonFrame.h

65 lines
1.0 KiB
C++

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