Commit 999c11f0 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for json parser

parent 69a3d3a6
......@@ -43,6 +43,12 @@ void PreemptionCapability::validate() {
// TODO: implement validation
}
void PreemptionCapability::set_value(std::string value) { this->value = value; }
void PreemptionCapability::get_value(std::string &value) const {
value = this->value;
}
std::string PreemptionCapability::get_value() const { return value; }
void to_json(nlohmann::json &j, const PreemptionCapability &o) {
j = o.get_value();
}
......
......@@ -53,6 +53,10 @@ class PreemptionCapability {
void validate();
void set_value(std::string value);
void get_value(std::string &value) const;
std::string get_value() const;
/////////////////////////////////////////////
/// PreemptionCapability members
......
......@@ -43,6 +43,15 @@ void PreemptionVulnerability::validate() {
// TODO: implement validation
}
void PreemptionVulnerability::set_value(std::string value) {
this->value = value;
}
void PreemptionVulnerability::get_value(std::string &value) const {
value = this->value;
}
std::string PreemptionVulnerability::get_value() const { return value; }
void to_json(nlohmann::json &j, const PreemptionVulnerability &o) {
j = o.get_value();
}
......
......@@ -52,6 +52,9 @@ class PreemptionVulnerability {
virtual ~PreemptionVulnerability();
void validate();
void set_value(std::string value);
void get_value(std::string &value) const;
std::string get_value() const;
/////////////////////////////////////////////
/// PreemptionVulnerability members
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment