|
MIP SDK — C++ 1.18
API Reference Documentation for C++
|
MipContext represents state that is shared across all profiles, engines, handlers. More...
#include <mip/mip_context.h>
Public Member Functions | |
| virtual void | ShutDown ()=0 |
| Terminate MIP. | |
| virtual bool | IsFeatureEnabled (FlightingFeature feature) const =0 |
| Gets whether or not a feature is enabled. | |
| virtual const ApplicationInfo & | GetApplicationInfo () const =0 |
| Get application description. | |
| virtual const std::string & | GetMipPath () const =0 |
| Get file path for logs, caches, etc. | |
| virtual bool | IsOfflineOnly () const =0 |
| Get offline-only setting. | |
| virtual LogLevel | GetThresholdLogLevel () const =0 |
| Get threshold log level. | |
| virtual std::shared_ptr< LoggerDelegate > | GetLoggerDelegate () const =0 |
| Get logger implementation. | |
| virtual std::shared_ptr< HttpDelegate > | GetHttpDelegate () const =0 |
| Get Http implementation. | |
| virtual LoggerDelegate * | GetRawLoggerDelegate () const =0 |
| Get raw logger implementation. | |
| virtual std::shared_ptr< StorageDelegate > | GetStorageDelegate () const =0 |
| Get Storage Delegate implementation if provided. | |
| virtual std::shared_ptr< CloudDiscoveryDelegate > | GetCloudDiscoveryDelegate () const =0 |
| Get Cloud Discovery Delegate implementation if provided. | |
| virtual const std::map< FlightingFeature, bool > & | GetFlightingFeatures () const =0 |
| Get flighting feature set. | |
| virtual const std::shared_ptr< const MipConfiguration > & | GetMipConfiguration () const =0 |
| Gets the mip configuration that was used to create the MipContext. | |
| virtual const LoggerConfiguration & | GetLoggerConfiguration () const =0 |
| Gets the logger configuration that will be used by the default logger. | |
| virtual std::shared_ptr< CacheStorageType > | GetCacheStorageType () const =0 |
| Get whether caches are stored in memory or on disk. | |
| virtual std::shared_ptr< ProtectionCloudManager > | GetProtectionCloudManager () const =0 |
| virtual std::shared_ptr< PolicyCloudManager > | GetPolicyCloudManager () const =0 |
| virtual std::shared_ptr< OneDSCloudManager > | GetOneDSCloudManager () const =0 |
| virtual std::shared_ptr< TelemetryManager > | GetTelemetryManager () const =0 |
| virtual std::shared_ptr< AuditManager > | GetAuditManager () const =0 |
| virtual TelemetryManager * | GetRawTelemetryManager () const =0 |
| virtual std::shared_ptr< JsonDelegate > | GetJsonDelegate () const =0 |
| virtual std::shared_ptr< OneDSAriaHelper > | GetOneDSAriaHelper () const =0 |
| virtual std::shared_ptr< EventContext > | GetDefaultEventContext () const =0 |
| virtual void | InitializeCloudDiscoveryStores (const CacheStorageType cacheStorageType)=0 |
| virtual std::shared_ptr< xml::XmlDelegate > | GetXmlDelegate () const =0 |
| Get the Xml Delegate that should be used when parsing. If the application provides a MipConfiguration with an xml delegate and is using MipCore this method returns that alternative delegate. Otherwise the default implementation will be used. | |
| virtual | ~MipContext () |
Static Public Member Functions | |
| static MIP_API std::shared_ptr< MipContext > __CDECL | Create (const ApplicationInfo &appInfo, const std::string &path, LogLevel thresholdLogLevel, bool isOfflineOnly, const std::shared_ptr< LoggerDelegate > &loggerDelegateOverride, const std::shared_ptr< DiagnosticConfiguration > &diagnosticOverride) |
| Create a new MipContext instance to be used when initializing profiles. | |
| static MIP_API std::shared_ptr< MipContext > __CDECL | CreateWithCustomFeatureSettings (const ApplicationInfo &appInfo, const std::string &path, LogLevel thresholdLogLevel, bool isOfflineOnly, const std::shared_ptr< LoggerDelegate > &loggerDelegateOverride, const std::shared_ptr< DiagnosticConfiguration > &diagnosticOverride, const std::map< FlightingFeature, bool > &featureSettingsOverride) |
| Create a new MipContext instance with custom feature settings. | |
| static MIP_API std::shared_ptr< MipContext > __CDECL | Create (const std::shared_ptr< const MipConfiguration > &configuration) |
| Create a new MipContext instance with mip configuration. | |
MipContext represents state that is shared across all profiles, engines, handlers.
|
inlinevirtual |
|
static |
Create a new MipContext instance to be used when initializing profiles.
| appInfo | Description of host application |
| path | File path for logs, caches, etc. |
| thresholdLogLevel | Minimum log level for .miplog |
| isOfflineOnly | Enable/disable network operations (not all actions supported when offline) |
| loggerDelegateOverride | (Optional) LoggerDelegate override implementation |
| diagnosticOverride | (Optional) DiagnosticConfiguration override for audit/telemetry |
|
static |
Create a new MipContext instance with mip configuration.
| mipConfiguration | mipConfiguration to be used across MIP |
|
static |
Create a new MipContext instance with custom feature settings.
| appInfo | Description of host application |
| path | File path for logs, caches, etc. |
| thresholdLogLevel | Minimum log level for .miplog |
| isOfflineOnly | Enable/disable network operations (not all actions supported when offline) |
| loggerDelegateOverride | (Optional) LoggerDelegate override implementation |
| diagnosticOverride | (Optional) DiagnosticConfiguration override for audit/telemetry |
| featureSettingsOverride | Flighting features which should be set to non-default values |
|
pure virtual |
Get application description.
|
pure virtual |
|
pure virtual |
Get whether caches are stored in memory or on disk.
|
pure virtual |
Get Cloud Discovery Delegate implementation if provided.
|
pure virtual |
|
pure virtual |
Get flighting feature set.
|
pure virtual |
Get Http implementation.
|
pure virtual |
|
pure virtual |
Gets the logger configuration that will be used by the default logger.
|
pure virtual |
Get logger implementation.
|
pure virtual |
Gets the mip configuration that was used to create the MipContext.
|
pure virtual |
Get file path for logs, caches, etc.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Get raw logger implementation.
|
pure virtual |
|
pure virtual |
Get Storage Delegate implementation if provided.
|
pure virtual |
|
pure virtual |
Get threshold log level.
|
pure virtual |
Get the Xml Delegate that should be used when parsing. If the application provides a MipConfiguration with an xml delegate and is using MipCore this method returns that alternative delegate. Otherwise the default implementation will be used.
|
pure virtual |
|
pure virtual |
Gets whether or not a feature is enabled.
| feature | Feature to enable/disable |
|
pure virtual |
Get offline-only setting.
|
pure virtual |
Terminate MIP.