98 WTest::Reason reason{WTest::Reason::NONE};
103 std::optional<int> wtest_report_step{};
106 WTestWell(
const std::string& wname, WTest::Reason reason_,
double last_test);
108 int int_reason()
const;
109 static WTest::Reason inverse_ecl_reason(
int ecl_reason);
111 bool operator==(
const WTestWell& other)
const {
112 return this->name == other.name &&
113 this->reason == other.reason &&
114 this->last_test == other.last_test &&
115 this->num_attempt == other.num_attempt &&
116 this->closed == other.closed &&
117 this->wtest_report_step == other.wtest_report_step;
120 static WTestWell serializationTestObject();
122 template<
class Serializer>
125 serializer(this->name);
126 serializer(this->reason);
127 serializer(this->last_test);
128 serializer(this->num_attempt);
129 serializer(this->closed);
130 serializer(this->wtest_report_step);
133 template<
class BufferType>
134 void pack(BufferType& buffer)
const {
135 buffer.write(this->name);
136 buffer.write(this->reason);
137 buffer.write(this->last_test);
138 buffer.write(this->num_attempt);
139 buffer.write(this->closed);
140 buffer.write(this->wtest_report_step);
143 template<
class BufferType>
144 void unpack(BufferType& buffer) {
145 buffer.read(this->name);
146 buffer.read(this->reason);
147 buffer.read(this->last_test);
148 buffer.read(this->num_attempt);
149 buffer.read(this->closed);
150 buffer.read(this->wtest_report_step);
156 std::string wellName{};
162 return this->wellName == other.wellName &&
163 this->complnum == other.complnum &&
164 this->last_test == other.last_test &&
165 this->num_attempt == other.num_attempt;
170 template<
class Serializer>
173 serializer(this->wellName);
174 serializer(this->complnum);
175 serializer(this->last_test);
176 serializer(this->num_attempt);
179 template<
class BufferType>
180 void pack(BufferType& buffer)
const {
181 buffer.write(this->wellName);
182 buffer.write(this->complnum);
183 buffer.write(this->last_test);
184 buffer.write(this->num_attempt);
187 template<
class BufferType>
188 void unpack(BufferType& buffer) {
189 buffer.read(this->wellName);
190 buffer.read(this->complnum);
191 buffer.read(this->last_test);
192 buffer.read(this->num_attempt);