MIDSX 0.1
A x-ray transport code system for dosimetry
Loading...
Searching...
No Matches
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
DataAccessObject Class Reference

Class which provides an interface to a SQLite database. More...

#include <data_access_object.h>

Collaboration diagram for DataAccessObject:

Public Member Functions

 DataAccessObject (const std::string &db_name)
 Constructor for the DataAccessObject class.
 
std::vector< std::string > executeQuery (const std::string &query)
 Executes a query and returns the results as a vector of strings.
 

Static Private Member Functions

static int callback (void *data, int argc, char **argv, char **azColName)
 

Private Attributes

sqlite3 * db {}
 

Detailed Description

Class which provides an interface to a SQLite database.

Definition at line 25 of file data_access_object.h.

Constructor & Destructor Documentation

◆ DataAccessObject()

DataAccessObject::DataAccessObject ( const std::string & db_name)
explicit

Constructor for the DataAccessObject class.

Parameters
db_nameThe name of the database.

Member Function Documentation

◆ executeQuery()

std::vector< std::string > DataAccessObject::executeQuery ( const std::string & query)

Executes a query and returns the results as a vector of strings.

Parameters
queryThe query to execute.
Returns
A vector of strings containing the results of the query.

Member Data Documentation

◆ db

sqlite3* DataAccessObject::db {}
private

Definition at line 44 of file data_access_object.h.


The documentation for this class was generated from the following file: