next version
This commit is contained in:
60
include/RTSMonFrame.h
Normal file
60
include/RTSMonFrame.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
*/
|
||||
|
||||
#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;
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user