we could read the kernel data and make a json file
This commit is contained in:
@@ -9,7 +9,8 @@ class RTSMonFrame
|
||||
{
|
||||
private:
|
||||
/* data */
|
||||
std::string id;
|
||||
int id;
|
||||
std::string name;
|
||||
int samplerate;
|
||||
int sampleperiod;
|
||||
int downtime;
|
||||
@@ -17,14 +18,14 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
RTSMonFrame(std::string id, int samplerate, int sampleperiod, int downtime) {
|
||||
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(std::string id) {
|
||||
RTSMonFrame(int id) {
|
||||
this->id = id;
|
||||
}
|
||||
|
||||
@@ -37,10 +38,13 @@ public:
|
||||
void Add(std::string item){
|
||||
this->items.push_back(item);
|
||||
}
|
||||
std::string GetId() {
|
||||
int GetId() {
|
||||
return this->id;
|
||||
}
|
||||
|
||||
std::string GetName() {
|
||||
return name;
|
||||
}
|
||||
int GetSampleRate() {
|
||||
return this->samplerate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user