Couchbase C++ SDK 1.0.1 (rev. 58d46d7)
Loading...
Searching...
No Matches
configuration_profiles_registry Class Reference

Registry for defining configuration profiles. More...

#include <couchbase/configuration_profiles_registry.hxx>

Static Public Member Functions

static void register_profile (const std::string &name, std::shared_ptr< configuration_profile > profile)
 Register a configuration_profile, and associate it with a name.
 
static void apply_profile (const std::string &name, couchbase::cluster_options &options)
 Apply a profile to an instance of cluster_options.
 
static auto available_profiles () -> std::vector< std::string >
 

Detailed Description

Registry for defining configuration profiles.

Member Function Documentation

◆ apply_profile()

static void apply_profile ( const std::string & name,
couchbase::cluster_options & options )
static

Apply a profile to an instance of cluster_options.

Parameters
name
options
Since
1.0.0
Internal
Internal interface

◆ available_profiles()

static auto available_profiles ( ) -> std::vector< std::string >
static

◆ register_profile()

static void register_profile ( const std::string & name,
std::shared_ptr< configuration_profile > profile )
static

Register a configuration_profile, and associate it with a name.

Parameters
nameThe name to use to refer to the profile.
profileInstance of class derived from configuration_profile, which is being registered.
Since
1.0.0
Volatile
Should not be used in production

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