aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/testing/Requirement.hpp
blob: caea5c66f8b941392d41530f12a2763e85458b0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once
#include <string>

namespace OpenVic {

   class Requirement {

      // Loaded during construction
      std::string id;
      std::string text;
      std::string acceptance_criteria;
      bool pass = false;   // Explicitly false to begin
      bool tested = false;

      // Initialised and used during script execution
      std::string target_value;
      std::string actual_value;

   public:

      Requirement(std::string in_id, std::string in_text, std::string in_acceptance_criteria) {
         id = in_id;
         text = in_text;
         acceptance_criteria = in_acceptance_criteria;
      }

      // Getters
      std::string get_id();
      std::string get_text();
      std::string get_acceptance_criteria();
      bool get_pass();
      bool get_tested();
      std::string get_target_value();
      std::string get_actual_value();

      // Setters
      void set_id(std::string in_id);
      void set_text(std::string in_text);
      void set_acceptance_criteria(std::string in_acceptance_criteria);
      void set_pass(bool in_pass);
      void set_tested(bool in_tested);
      void set_target_value(std::string in_target_value);
      void set_actual_value(std::string in_actual_value);
   };
}