aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/testing/Requirement.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-10-29 21:14:55 +0100
committer GitHub <noreply@github.com>2023-10-29 21:14:55 +0100
commit06cc0606156d009026930c785c62434276fbe782 (patch)
treed37fcb69766ec029ea4e3e2816c419f9d7e05f7c /src/openvic-simulation/testing/Requirement.cpp
parentd8ec90f07342876e9331819bd3cc372050f78248 (diff)
parent1b5e43fa7750cc4025d32f18390593cbce3ba842 (diff)
Merge pull request #67 from OpenVicProject/format
Formating
Diffstat (limited to 'src/openvic-simulation/testing/Requirement.cpp')
-rw-r--r--src/openvic-simulation/testing/Requirement.cpp54
1 files changed, 40 insertions, 14 deletions
diff --git a/src/openvic-simulation/testing/Requirement.cpp b/src/openvic-simulation/testing/Requirement.cpp
index d99153a..99a29de 100644
--- a/src/openvic-simulation/testing/Requirement.cpp
+++ b/src/openvic-simulation/testing/Requirement.cpp
@@ -3,22 +3,48 @@
using namespace OpenVic;
// Getters
-std::string Requirement::get_id() { return id; }
-std::string Requirement::get_text() { return text; }
-std::string Requirement::get_acceptance_criteria() { return acceptance_criteria; }
-bool Requirement::get_pass() { return pass; }
-bool Requirement::get_tested() { return tested; }
-std::string Requirement::get_target_value() { return target_value; }
-std::string Requirement::get_actual_value() { return actual_value; }
+std::string Requirement::get_id() {
+ return id;
+}
+std::string Requirement::get_text() {
+ return text;
+}
+std::string Requirement::get_acceptance_criteria() {
+ return acceptance_criteria;
+}
+bool Requirement::get_pass() {
+ return pass;
+}
+bool Requirement::get_tested() {
+ return tested;
+}
+std::string Requirement::get_target_value() {
+ return target_value;
+}
+std::string Requirement::get_actual_value() {
+ return actual_value;
+}
// Setters
-void Requirement::set_id(std::string in_id) { id = in_id; }
-void Requirement::set_text(std::string in_text) { text = in_text; }
-void Requirement::set_acceptance_criteria(std::string in_acceptance_criteria) { acceptance_criteria = in_acceptance_criteria; }
+void Requirement::set_id(std::string in_id) {
+ id = in_id;
+}
+void Requirement::set_text(std::string in_text) {
+ text = in_text;
+}
+void Requirement::set_acceptance_criteria(std::string in_acceptance_criteria) {
+ acceptance_criteria = in_acceptance_criteria;
+}
void Requirement::set_pass(bool in_pass) {
pass = in_pass;
- set_tested(true); // Ever setting a pass condition implies it has been tested
+ set_tested(true); // Ever setting a pass condition implies it has been tested
+}
+void Requirement::set_tested(bool in_tested) {
+ tested = in_tested;
+}
+void Requirement::set_target_value(std::string in_target_value) {
+ target_value = in_target_value;
+}
+void Requirement::set_actual_value(std::string in_actual_value) {
+ actual_value = in_actual_value;
}
-void Requirement::set_tested(bool in_tested) { tested = in_tested; }
-void Requirement::set_target_value(std::string in_target_value) { target_value = in_target_value; }
-void Requirement::set_actual_value(std::string in_actual_value) { actual_value = in_actual_value; }