blob: 632b14e8ece78296643747d2c545cc62e0603180 [file]
#ifndef CASBIN_CPP_PERSIST_FILE_ADAPTER_BATCH_FILE_ADAPTER
#define CASBIN_CPP_PERSIST_FILE_ADAPTER_BATCH_FILE_ADAPTER
#include "./file_adapter.h"
#include "../batch_adapter.h"
namespace casbin {
class BatchFileAdapter: public BatchAdapter, public FileAdapter {
public:
// NewAdapter is the constructor for Adapter.
BatchFileAdapter(std::string file_path);
static std::shared_ptr<BatchFileAdapter> NewBatchFileAdapter(std::string file_path);
void AddPolicies(std::string sec, std::string p_type, std::vector<std::vector<std::string>> rules);
void RemovePolicies(std::string sec, std::string p_type, std::vector<std::vector<std::string>> rules);
};
} // namespace casbin
#endif