added vrpmdv-rtservice, vrpmdv-mon-datafile,

vrpmdv-monitoring-controler, vrpmdv-mon-tty
This commit is contained in:
2024-06-21 08:51:47 +02:00
parent 1171265db7
commit 454ae2f46e
78 changed files with 39005 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
/*
*/
#include <string>
#include <list>
class RTSMonFrame
{
private:
/* data */
int id;
std::string name;
int samplerate;
int sampleperiod;
int downtime;
std::string status;
std::list<std::string> items;
public:
RTSMonFrame(int id, std::string name, int samplerate, int sampleperiod, int downtime, std::string status) {
this->id = id;
this->name = name;
this->samplerate = samplerate;
this->sampleperiod = sampleperiod;
this->downtime = downtime;
this->status = status;
}
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 this->name;
}
int GetSampleRate() {
return this->samplerate;
}
int GetSamplePeriod(){
return this->sampleperiod;
}
int GetDownTime(){
return this->downtime;
}
std::string Gettatus() {
return this->status;
}
std::list<std::string>& GetItems() {
return this->items;
}
};