policy-watcher/src/Policy.hh
2022-05-18 00:28:30 -07:00

24 lines
643 B
C++

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
#ifndef POLICY_H
#define POLICY_H
#include <napi.h>
using namespace Napi;
class Policy
{
public:
virtual bool refresh() = 0;
virtual Value getValue(Env env) const = 0;
const std::string name;
Policy(const std::string name)
: name(name) {}
};
#endif