![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
#include <database.hpp>
Public Member Functions | |
| std::string | UpdateEntry (std::string key, std::string entry) |
| BOOL | AddEntry (std::string key, std::string entry) |
| std::string | GetEntry (std::string hash) |
| ERRORCODE | InitializeDatabase () |
| PanoptesDatabase () | |
Static Public Member Functions | |
| static void | CloseDatabase () |
| Flushes and closes the database. Safe to call if it was never opened. | |
Definition at line 7 of file database.hpp.
| PanoptesDatabase::PanoptesDatabase | ( | ) |
Definition at line 85 of file database.cpp.
References m_options.
| BOOL PanoptesDatabase::AddEntry | ( | std::string | key, |
| std::string | entry ) |
Definition at line 50 of file database.cpp.
References m_database.
|
static |
Flushes and closes the database. Safe to call if it was never opened.
Definition at line 40 of file database.cpp.
References m_database.
| std::string PanoptesDatabase::GetEntry | ( | std::string | hash | ) |
Definition at line 60 of file database.cpp.
References m_database.
Referenced by UpdateEntry().
| ERRORCODE PanoptesDatabase::InitializeDatabase | ( | ) |
Definition at line 24 of file database.cpp.
References DB_INITIALIZATION, ERRORCODE, GetExecutableDirectory(), m_database, m_options, PANO_SUCCESS, and PANOPTES_DATABASE_PATH.
| std::string PanoptesDatabase::UpdateEntry | ( | std::string | key, |
| std::string | entry ) |
Definition at line 66 of file database.cpp.
References GetEntry(), and m_database.