blob: 20dad3dae20c102bb6a650ba6a27e006ae0d5032 (
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
|
#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);
};
}
|