fb-cpp 0.0.2
A modern C++ wrapper for the Firebird database API
Loading...
Searching...
No Matches
fbcpp::DatabasePropertiesOptions Class Referencefinal

Represents options used to configure database properties through the service manager. More...

#include <DatabaseManager.h>

Public Member Functions

const std::string & getDatabase () const
 Returns the database path to be configured.
 
DatabasePropertiesOptionssetDatabase (const std::string &value)
 Sets the database path to be configured.
 
const std::optional< ReplicaMode > & getReplicaMode () const
 Returns the replica mode.
 
DatabasePropertiesOptionssetReplicaMode (ReplicaMode value)
 Sets the replica mode.
 
const std::optional< ShutdownMode > & getShutdownMode () const
 Returns the shutdown mode.
 
DatabasePropertiesOptionssetShutdownMode (ShutdownMode value)
 Sets the shutdown mode.
 
const std::optional< ShutdownType > & getShutdownType () const
 Returns the shutdown type.
 
DatabasePropertiesOptionssetShutdownType (ShutdownType value)
 Sets the shutdown type.
 
const std::optional< int > & getShutdownTimeout () const
 Returns the shutdown timeout in seconds.
 
DatabasePropertiesOptionssetShutdownTimeout (int value)
 Sets the shutdown timeout in seconds.
 
const std::optional< bool > & getOnline () const
 Returns whether the database should be brought online.
 
DatabasePropertiesOptionssetOnline (bool value)
 Sets whether the database should be brought online.
 

Detailed Description

Represents options used to configure database properties through the service manager.

Definition at line 89 of file DatabaseManager.h.

Member Function Documentation

◆ getDatabase()

const std::string & fbcpp::DatabasePropertiesOptions::getDatabase ( ) const
inline

Returns the database path to be configured.

Definition at line 95 of file DatabaseManager.h.

◆ getOnline()

const std::optional< bool > & fbcpp::DatabasePropertiesOptions::getOnline ( ) const
inline

Returns whether the database should be brought online.

Definition at line 180 of file DatabaseManager.h.

◆ getReplicaMode()

const std::optional< ReplicaMode > & fbcpp::DatabasePropertiesOptions::getReplicaMode ( ) const
inline

Returns the replica mode.

Definition at line 112 of file DatabaseManager.h.

◆ getShutdownMode()

const std::optional< ShutdownMode > & fbcpp::DatabasePropertiesOptions::getShutdownMode ( ) const
inline

Returns the shutdown mode.

Definition at line 129 of file DatabaseManager.h.

◆ getShutdownTimeout()

const std::optional< int > & fbcpp::DatabasePropertiesOptions::getShutdownTimeout ( ) const
inline

Returns the shutdown timeout in seconds.

Definition at line 163 of file DatabaseManager.h.

◆ getShutdownType()

const std::optional< ShutdownType > & fbcpp::DatabasePropertiesOptions::getShutdownType ( ) const
inline

Returns the shutdown type.

Definition at line 146 of file DatabaseManager.h.

◆ setDatabase()

DatabasePropertiesOptions & fbcpp::DatabasePropertiesOptions::setDatabase ( const std::string &  value)
inline

Sets the database path to be configured.

Definition at line 103 of file DatabaseManager.h.

◆ setOnline()

DatabasePropertiesOptions & fbcpp::DatabasePropertiesOptions::setOnline ( bool  value)
inline

Sets whether the database should be brought online.

Definition at line 188 of file DatabaseManager.h.

◆ setReplicaMode()

DatabasePropertiesOptions & fbcpp::DatabasePropertiesOptions::setReplicaMode ( ReplicaMode  value)
inline

Sets the replica mode.

Definition at line 120 of file DatabaseManager.h.

◆ setShutdownMode()

DatabasePropertiesOptions & fbcpp::DatabasePropertiesOptions::setShutdownMode ( ShutdownMode  value)
inline

Sets the shutdown mode.

Definition at line 137 of file DatabaseManager.h.

◆ setShutdownTimeout()

DatabasePropertiesOptions & fbcpp::DatabasePropertiesOptions::setShutdownTimeout ( int  value)
inline

Sets the shutdown timeout in seconds.

Definition at line 171 of file DatabaseManager.h.

◆ setShutdownType()

DatabasePropertiesOptions & fbcpp::DatabasePropertiesOptions::setShutdownType ( ShutdownType  value)
inline

Sets the shutdown type.

Definition at line 154 of file DatabaseManager.h.


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