|
MIP SDK — C++ 1.18
API Reference Documentation for C++
|
Settings used by PolicyProfile during its creation and throughout its lifetime. More...
#include <mip/upe/policy_profile.h>
Public Member Functions | |
| Settings (const std::shared_ptr< MipContext > &mipContext, CacheStorageType cacheStorageType, const std::shared_ptr< PolicyProfile::Observer > &observer) | |
| Interface for configuring the profile. | |
| CacheStorageType | GetCacheStorageType () const |
| Get whether caches are stored in memory or on disk. | |
| const std::shared_ptr< PolicyProfile::Observer > & | GetObserver () const |
| Get the event observer. | |
| std::shared_ptr< MipContext > | GetMipContext () const |
| Get MIP context which represents shared state across all profiles. | |
| std::shared_ptr< HttpDelegate > | GetHttpDelegate () const |
| Get the HTTP delegate (if any) provided by the application. | |
| void | SetHttpDelegate (const std::shared_ptr< HttpDelegate > &httpDelegate) |
| Override default HTTP stack with client's own. | |
| std::shared_ptr< StorageDelegate > | GetStorageDelegate () const |
| Get the StorageDelegate (if any) provided by the application. | |
| void | SetStorageDelegate (const std::shared_ptr< StorageDelegate > &storageDelegate) |
| Override default storage cache with client's own implementation. | |
| std::shared_ptr< TaskDispatcherDelegate > | GetTaskDispatcherDelegate () const |
| Get the TaskDispatcher delegate (if any) provided by the application. | |
| void | SetTaskDispatcherDelegate (const std::shared_ptr< TaskDispatcherDelegate > &taskDispatcherDelegate) |
| Override default asynchronous task dispatching handling with client's own. | |
| void | SetSessionId (const std::string &sessionId) |
| const std::string & | GetSessionId () const |
| void | SetCustomSettings (const std::vector< std::pair< std::string, std::string > > &customSettings) |
| Set the custom settings, used for feature gating and testing. | |
| const std::vector< std::pair< std::string, std::string > > & | GetCustomSettings () const |
| Get the custom settings, used for feature gating and testing. | |
| const std::shared_ptr< void > & | GetLoggerContext () const |
| Get logger context that will be opaquely passed to the logger delegate for logs associated with the created profile. | |
| void | SetLoggerContext (const std::shared_ptr< void > &loggerContext) |
| Sets the logger context that will be opaquely passed to the logger delegate for logs associated with the created profile. | |
| ~Settings () | |
Private Attributes | |
| std::shared_ptr< MipContext > | mMipContext |
| CacheStorageType | mCacheStorageType |
| std::shared_ptr< PolicyProfile::Observer > | mObserver |
| std::shared_ptr< HttpDelegate > | mHttpDelegate |
| std::shared_ptr< TaskDispatcherDelegate > | mTaskDispatcherDelegate |
| std::string | mSessionId |
| std::vector< std::pair< std::string, std::string > > | mCustomSettings |
| std::shared_ptr< void > | mLoggerContext |
| std::shared_ptr< StorageDelegate > | mStorageDelegate |
Settings used by PolicyProfile during its creation and throughout its lifetime.
|
inline |
Interface for configuring the profile.
| mipContext | Global context settings |
| cacheStorageType | Store any cached state in memory or on disk, ignored if cacheStorageType is specified in MipConfiguration |
| observer | A class implementing the PolicyProfile::Observer interface. Can be nullptr. |
|
inline |
|
inline |
Get whether caches are stored in memory or on disk.
|
inline |
Get the custom settings, used for feature gating and testing.
|
inline |
Get the HTTP delegate (if any) provided by the application.
|
inline |
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created profile.
|
inline |
Get MIP context which represents shared state across all profiles.
|
inline |
Get the event observer.
|
inline |
|
inline |
Get the StorageDelegate (if any) provided by the application.
|
inline |
Get the TaskDispatcher delegate (if any) provided by the application.
|
inline |
Set the custom settings, used for feature gating and testing.
| customSettings | List of name/value pairs. |
|
inline |
Override default HTTP stack with client's own.
| httpDelegate | Http callback interface implemented by client application |
|
inline |
Sets the logger context that will be opaquely passed to the logger delegate for logs associated with the created profile.
| loggerContext | The logger context |
|
inline |
|
inline |
Override default storage cache with client's own implementation.
| storageDelegate | StorageDelegate implemented by client application |
|
inline |
Override default asynchronous task dispatching handling with client's own.
| taskDispatcherDelegate | Task dispatching callback interface implemented by client application |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |