Core implementation of SzEnvironment backed by the native libSz modules.
More...
#include <SzCoreEnvironment.hpp>
|
| static constexpr const char * | kDefaultInstanceName = "Senzing Instance" |
| | Default native instance name when none is supplied (mirrors C#).
|
| |
| static constexpr const char * | kDefaultSettings = "{ }" |
| | Default settings when none are supplied (mirrors C#).
|
| |
Core implementation of SzEnvironment backed by the native libSz modules.
◆ ~SzCoreEnvironment()
| senzing::sdk::core::SzCoreEnvironment::~SzCoreEnvironment |
( |
| ) |
|
|
override |
◆ SzCoreEnvironment()
| senzing::sdk::core::SzCoreEnvironment::SzCoreEnvironment |
( |
const SzCoreEnvironment & |
| ) |
|
|
delete |
◆ Destroy()
| void senzing::sdk::core::SzCoreEnvironment::Destroy |
( |
| ) |
|
|
overridevirtual |
◆ EnsureActive()
| void senzing::sdk::core::SzCoreEnvironment::EnsureActive |
( |
| ) |
|
Locks the environment mutex and throws SzEnvironmentDestroyedException if this environment has been destroyed.
Mirrors C# SzCoreEnvironment's Execute/EnsureActive liveness guard and is called at the top of every public subsystem method (SzCoreEngine/Product/ConfigManager/Diagnostic/ Config) before touching native state, so calls made after Destroy() fail cleanly instead of using a torn-down native module.
◆ GetActiveConfigID()
| int64_t senzing::sdk::core::SzCoreEnvironment::GetActiveConfigID |
( |
| ) |
|
|
overridevirtual |
◆ GetActiveInstance()
| static SzCoreEnvironment * senzing::sdk::core::SzCoreEnvironment::GetActiveInstance |
( |
| ) |
|
|
static |
The single active environment instance for this process, or nullptr if none is active.
Mirrors C# SzCoreEnvironment.GetActiveInstance(). The environment is a per-process singleton: constructing a second instance while one is active throws std::logic_error; Destroy() clears it.
◆ GetConfigID()
| std::optional< int64_t > senzing::sdk::core::SzCoreEnvironment::GetConfigID |
( |
| ) |
const |
|
noexcept |
The explicit configuration ID this environment is pinned to, or std::nullopt to use the repository's default configuration.
Mirrors C# SzCoreEnvironment.GetConfigID(). Consulted by the engine/diagnostic constructors to choose between the plain init and the initWithConfigID native path. Caller must hold monitor_ (the owned subsystems are only constructed from within a Get* that already holds it).
◆ GetConfigManager()
| SzConfigManager & senzing::sdk::core::SzCoreEnvironment::GetConfigManager |
( |
| ) |
|
|
overridevirtual |
◆ GetDiagnostic()
| SzDiagnostic & senzing::sdk::core::SzCoreEnvironment::GetDiagnostic |
( |
| ) |
|
|
overridevirtual |
◆ GetEngine()
| SzEngine & senzing::sdk::core::SzCoreEnvironment::GetEngine |
( |
| ) |
|
|
overridevirtual |
◆ GetInstanceName()
| const std::string & senzing::sdk::core::SzCoreEnvironment::GetInstanceName |
( |
| ) |
const |
|
noexcept |
◆ GetProduct()
| SzProduct & senzing::sdk::core::SzCoreEnvironment::GetProduct |
( |
| ) |
|
|
overridevirtual |
◆ GetSettings()
| const std::string & senzing::sdk::core::SzCoreEnvironment::GetSettings |
( |
| ) |
const |
|
noexcept |
◆ IsDestroyed()
| bool senzing::sdk::core::SzCoreEnvironment::IsDestroyed |
( |
| ) |
|
|
overridevirtual |
◆ IsVerboseLogging()
| bool senzing::sdk::core::SzCoreEnvironment::IsVerboseLogging |
( |
| ) |
const |
|
noexcept |
◆ NewBuilder()
| static Builder senzing::sdk::core::SzCoreEnvironment::NewBuilder |
( |
| ) |
|
|
static |
◆ operator=()
◆ Reinitialize()
| void senzing::sdk::core::SzCoreEnvironment::Reinitialize |
( |
int64_t |
configID | ) |
|
|
overridevirtual |
◆ kDefaultInstanceName
| constexpr const char* senzing::sdk::core::SzCoreEnvironment::kDefaultInstanceName = "Senzing Instance" |
|
staticconstexpr |
Default native instance name when none is supplied (mirrors C#).
◆ kDefaultSettings
| constexpr const char* senzing::sdk::core::SzCoreEnvironment::kDefaultSettings = "{ }" |
|
staticconstexpr |
Default settings when none are supplied (mirrors C#).
The documentation for this class was generated from the following file: