Hegel 0.18.3
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::Database Class Reference

Configure the Hegel database. More...

#include <settings.h>

Public Types

enum class  Kind { Default , Disabled , Path }
 The configuration of the database. See the methods below. More...

Static Public Member Functions

static Database default_location ()
static Database disabled ()
static Database from_path (std::string path)

Detailed Description

Configure the Hegel database.

Member Enumeration Documentation

◆ Kind

enum class hegel::Database::Kind
strong

The configuration of the database. See the methods below.

Enumerator
Default 

Use the database at .hegel/examples.

Disabled 

Disable the database.

Path 

Use the given directory as the database.

Member Function Documentation

◆ default_location()

Database hegel::Database::default_location ( )
inlinestatic

Use the database at .hegel/examples, also where the settings profile disables the database.

Returns
A database with Database::Kind::Default.

◆ disabled()

Database hegel::Database::disabled ( )
inlinestatic

Disable the database.

Returns
A database with Database::Kind::Disabled.

◆ from_path()

Database hegel::Database::from_path ( std::string path)
inlinestatic

Use the given directory as the database.

Parameters
pathThe directory path for the database.
Returns
A database with Database::Kind::Path.

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