Fray Engine
Loading...
Searching...
No Matches
fray::DatabaseChoice Struct Reference

Chooses an existing candidate database or a new database when opening is ambiguous. More...

#include <project_manager.hpp>

Static Public Member Functions

static DatabaseChoice use (const std::string &candidate)
 Selects an existing database candidate.
static DatabaseChoice create ()
 Returns a choice to create a new database.

Public Attributes

bool createNew = false
 True to create a new database instead of adopting a candidate.
std::string name
 Candidate database file stem without the .sqlite extension.

Detailed Description

Chooses an existing candidate database or a new database when opening is ambiguous.

Definition at line 38 of file project_manager.hpp.

Member Function Documentation

◆ create()

DatabaseChoice fray::DatabaseChoice::create ( )
inlinestatic

Returns a choice to create a new database.

Definition at line 59 of file project_manager.hpp.

◆ use()

DatabaseChoice fray::DatabaseChoice::use ( const std::string & candidate)
inlinestatic

Selects an existing database candidate.

Parameters
candidateCandidate file stem without .sqlite.
Returns
Choice to adopt the candidate.

Definition at line 54 of file project_manager.hpp.

Member Data Documentation

◆ createNew

bool fray::DatabaseChoice::createNew = false

True to create a new database instead of adopting a candidate.

Definition at line 43 of file project_manager.hpp.

◆ name

std::string fray::DatabaseChoice::name

Candidate database file stem without the .sqlite extension.

Definition at line 47 of file project_manager.hpp.


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