Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
database.hpp
Go to the documentation of this file.
1#pragma once
2#include <Windows.h>
3#include <nlohmann/json.hpp>
4#include "ResourceCore.h"
5#include "error_message.h"
6
8public:
9 //BOOL DeleteDatabase(string databasePath);
10 std::string UpdateEntry(std::string key, std::string entry);
11 BOOL AddEntry(std::string key, std::string entry);
12 std::string GetEntry(std::string hash);
15 static void CloseDatabase();
17};
ERRORCODE InitializeDatabase()
Definition database.cpp:24
std::string UpdateEntry(std::string key, std::string entry)
Definition database.cpp:66
static void CloseDatabase()
Flushes and closes the database. Safe to call if it was never opened.
Definition database.cpp:40
std::string GetEntry(std::string hash)
Definition database.cpp:60
BOOL AddEntry(std::string key, std::string entry)
Definition database.cpp:50
#define ERRORCODE