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.
24 lines
553 B
C
24 lines
553 B
C
3 years ago
|
#ifndef LOCATIONREQUIREDPOLICY_H
|
||
|
#define LOCATIONREQUIREDPOLICY_H
|
||
|
|
||
|
#include <memory>
|
||
|
#include "policy.h"
|
||
|
|
||
|
class Location;
|
||
|
|
||
|
class LocationRequiredPolicy : public Policy
|
||
|
{
|
||
|
public:
|
||
|
explicit LocationRequiredPolicy(const std::string& satisfaction, const std::string& dissatisfaction);
|
||
|
virtual ~LocationRequiredPolicy() override;
|
||
|
|
||
|
virtual Policy::CheckResult check() const override;
|
||
|
|
||
|
void setRequiredLocation(const std::shared_ptr<Location>& location);
|
||
|
|
||
|
private:
|
||
|
std::shared_ptr<Location> _location;
|
||
|
};
|
||
|
|
||
|
#endif // LOCATIONREQUIREDPOLICY_H
|