|
Senzing C++ SDK
C++ SDK for Senzing v4, patterned after the official C# SDK
|
Core implementation of SzConfigManager backed by the native SzConfig_* and SzConfigMgr_* modules. More...
#include <SzCoreConfigManager.hpp>


Public Member Functions | |
| SzCoreConfigManager (SzCoreEnvironment &env) | |
| Constructs and initializes the native SzConfig_* module using the owning environment's settings. | |
| ~SzCoreConfigManager () override=default | |
| SzCoreConfigManager (const SzCoreConfigManager &)=delete | |
| SzCoreConfigManager & | operator= (const SzCoreConfigManager &)=delete |
| std::unique_ptr< SzConfig > | CreateConfig () override |
| Creates a new in-memory config from the registered template. | |
| std::unique_ptr< SzConfig > | CreateConfig (const std::string &configDefinition) override |
| Creates an in-memory config from the supplied JSON definition. | |
| std::unique_ptr< SzConfig > | CreateConfig (int64_t configID) override |
| Loads the persisted config with the given ID into a new in-memory config. | |
| int64_t | RegisterConfig (const std::string &configDefinition, const std::string &configComment) override |
| Registers a config definition with a comment; returns the new config ID. | |
| int64_t | RegisterConfig (const std::string &configDefinition) override |
| Registers a config definition (auto-generated comment); returns the ID. | |
| std::string | GetConfigRegistry () override |
| Returns JSON describing all registered configurations. | |
| int64_t | GetDefaultConfigID () override |
| Returns the current default configuration ID. | |
| void | ReplaceDefaultConfigID (int64_t currentDefaultConfigID, int64_t newDefaultConfigID) override |
Atomically replaces the default config ID if it currently matches currentDefaultConfigID. | |
| void | SetDefaultConfigID (int64_t configID) override |
| Sets the default configuration ID. | |
| int64_t | SetDefaultConfig (const std::string &configDefinition, const std::string &configComment) override |
Registers configDefinition (with comment) and sets it as default; returns the new config ID. | |
| int64_t | SetDefaultConfig (const std::string &configDefinition) override |
Registers configDefinition (auto comment) and sets it as default. | |
| void | Destroy () |
| Destroys both native modules. | |
| bool | IsDestroyed () |
| True once the native SzConfig_* module has been destroyed. | |
Public Member Functions inherited from senzing::sdk::SzConfigManager | |
| virtual | ~SzConfigManager ()=default |
Core implementation of SzConfigManager backed by the native SzConfig_* and SzConfigMgr_* modules.
|
explicit |
Constructs and initializes the native SzConfig_* module using the owning environment's settings.
The SzConfigMgr_* module is initialized lazily on first use (mirrors C#). Throws the mapped SzException on init failure.
|
overridedefault |
|
delete |
|
overridevirtual |
Creates a new in-memory config from the registered template.
Implements senzing::sdk::SzConfigManager.
|
overridevirtual |
Creates an in-memory config from the supplied JSON definition.
Implements senzing::sdk::SzConfigManager.
|
overridevirtual |
Loads the persisted config with the given ID into a new in-memory config.
Implements senzing::sdk::SzConfigManager.
| void senzing::sdk::core::SzCoreConfigManager::Destroy | ( | ) |
Destroys both native modules.
Idempotent; called by the owning environment during teardown.
|
overridevirtual |
Returns JSON describing all registered configurations.
Implements senzing::sdk::SzConfigManager.
|
overridevirtual |
Returns the current default configuration ID.
Implements senzing::sdk::SzConfigManager.
| bool senzing::sdk::core::SzCoreConfigManager::IsDestroyed | ( | ) |
True once the native SzConfig_* module has been destroyed.
|
delete |
|
overridevirtual |
Registers a config definition (auto-generated comment); returns the ID.
Implements senzing::sdk::SzConfigManager.
|
overridevirtual |
Registers a config definition with a comment; returns the new config ID.
Implements senzing::sdk::SzConfigManager.
|
overridevirtual |
Atomically replaces the default config ID if it currently matches currentDefaultConfigID.
Implements senzing::sdk::SzConfigManager.
|
overridevirtual |
Registers configDefinition (auto comment) and sets it as default.
Implements senzing::sdk::SzConfigManager.
|
overridevirtual |
Registers configDefinition (with comment) and sets it as default; returns the new config ID.
Implements senzing::sdk::SzConfigManager.
|
overridevirtual |
Sets the default configuration ID.
Implements senzing::sdk::SzConfigManager.