we could read the kernel data and make a json file

This commit is contained in:
2024-06-25 20:46:54 +02:00
parent 8d2fee2406
commit bd3078bdef
30 changed files with 536 additions and 4603 deletions

View File

@@ -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;
}