Files
UnrealEngineUWP/Engine/Source/Programs/CrashReportClient/Private/CrashReportAnalytics.h
Thomas Sarkanen 8ba3c4c087 Merging //UE4/Dev-Main to Dev-Anim (//UE4/Dev-Anim) @ CL 4643671
#rb none
#jira none

[CL 4665410 by Thomas Sarkanen in Dev-Anim branch]
2018-12-17 06:31:16 -05:00

41 lines
1.1 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Templates/UnrealTemplate.h"
#include "Templates/SharedPointer.h"
class IAnalyticsProviderET;
/**
* The public interface for the analytics provider singleton.
* For Epic builds, this will point to epic's internal analytics provider.
* For licensee builds, it will be NULL by default unless they provide their own
* configuration.
*
*/
class FCrashReportAnalytics : FNoncopyable
{
public:
/**
* Return the provider instance. Not valid outside of Initialize/Shutdown calls.
* Note: must check IsAvailable() first else this code will assert if the provider is not valid.
*/
static IAnalyticsProviderET& GetProvider();
/** Helper function to determine if the provider is valid. */
static bool IsAvailable()
{
return Analytics.IsValid();
}
/** Called to initialize the singleton. */
static void Initialize();
/** Called to shut down the singleton */
static void Shutdown();
private:
static bool bIsInitialized;
static TSharedPtr<IAnalyticsProviderET> Analytics;
};