routing.hpp (543f44000a992870ff76e76888dd589a3a31ed4e) | routing.hpp (ecd6a3a20ab128ae9d3e356d6250695800dc13be) |
---|---|
1#pragma once 2 3#include "common.hpp" 4#include "dbus_utility.hpp" 5#include "error_messages.hpp" 6#include "http_request.hpp" 7#include "http_response.hpp" 8#include "logging.hpp" --- 20 unchanged lines hidden (view full) --- 29class BaseRule 30{ 31 public: 32 BaseRule(const std::string& thisRule) : rule(thisRule) 33 {} 34 35 virtual ~BaseRule() = default; 36 | 1#pragma once 2 3#include "common.hpp" 4#include "dbus_utility.hpp" 5#include "error_messages.hpp" 6#include "http_request.hpp" 7#include "http_response.hpp" 8#include "logging.hpp" --- 20 unchanged lines hidden (view full) --- 29class BaseRule 30{ 31 public: 32 BaseRule(const std::string& thisRule) : rule(thisRule) 33 {} 34 35 virtual ~BaseRule() = default; 36 |
37 BaseRule(const BaseRule&) = delete; 38 BaseRule(BaseRule&&) = delete; 39 BaseRule& operator=(const BaseRule&) = delete; 40 BaseRule& operator=(const BaseRule&&) = delete; 41 |
|
37 virtual void validate() = 0; 38 std::unique_ptr<BaseRule> upgrade() 39 { 40 if (ruleToUpgrade) 41 { 42 return std::move(ruleToUpgrade); 43 } 44 return {}; --- 1420 unchanged lines hidden --- | 42 virtual void validate() = 0; 43 std::unique_ptr<BaseRule> upgrade() 44 { 45 if (ruleToUpgrade) 46 { 47 return std::move(ruleToUpgrade); 48 } 49 return {}; --- 1420 unchanged lines hidden --- |