You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
442 B
C++
17 lines
442 B
C++
#include "policy.h"
|
|
|
|
Policy::Policy(const std::string& satisfaction, const std::string& dissatisfaction) :
|
|
_commentary_on_satisfaction(satisfaction),
|
|
_commentary_on_dissatisfaction(dissatisfaction)
|
|
{}
|
|
|
|
Policy::~Policy()
|
|
{}
|
|
|
|
Policy::CheckResult Policy::composeMessageFromResult(bool result) const
|
|
{
|
|
return {result, (result)
|
|
? _commentary_on_satisfaction
|
|
: _commentary_on_dissatisfaction};
|
|
}
|