Navigation
API > API/Plugins > API/Plugins/ConcertSyncCore
References
| Module | ConcertSyncCore |
| Header | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/ConcertSyncSessionDatabase.h |
| Include | #include "ConcertSyncSessionDatabase.h" |
Syntax
class FConcertSyncSessionDatabase
Remarks
Database of activities that have happened in a Concert Sync Session. Stores the activity index and their associated data.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Defined here where TUniquePtr can see the definition of FConcertFileCache and FConcertSyncSessionDatabaseStatements as the TUniquePtr constructor/destructor cannot work with a forward declared type | |||
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddConnectionActivity
(
const FConcertSyncConnectionActivity& InConnectionActivity, |
Add a new connection activity to this database, assigning it both an activity and connection event ID. | |
| bool | AddDummyPackageEvent
(
const FName InPackageName, |
Add a new dummy package event to this database, assigning it a package event ID. | |
| bool | AddLockActivity
(
const FConcertSyncLockActivity& InLockActivity, |
Add a new lock activity to this database, assigning it both an activity and lock event ID. | |
| bool | AddPackageActivity
(
const FConcertSyncActivity& InPackageActivity, |
Add a new package activity to this database, assigning it both an activity and package event ID. | |
| bool | AddPersistEventForHeadRevision
(
FName InPackageName, |
Add a package event ID for the head revision to the persist events in this database, if not already existing. | |
| bool | AddReplicationActivity
(
const FConcertSyncReplicationActivity& InReplicationActivity, |
Add a new replication activity to this database, assigning it both an activity and lock event ID. | |
| bool | AddTransactionActivity
(
const FConcertSyncTransactionActivity& InTransactionActivity, |
Add a new transaction activity to this database, assigning it both an activity and transaction event ID. | |
| bool | Close
(
const bool InDeleteDatabase |
Close an open database file. | |
| bool | EnumerateActivities
(
FIterateActivityFunc InCallback |
Enumerate the generic part of the activities in this database. | |
| bool | EnumerateActivitiesForEventType
(
const EConcertSyncActivityEventType InEventType, |
Enumerate all the activities in this database of the given type. | |
| bool | EnumerateActivitiesInRange
(
const int64 InFirstActivityId, |
Enumerate all the activities in this database in the given range. | |
| bool | EnumerateActivityIdsAndEventTypes
(
TFunctionRef< bool(int64, EConcertSyncActivityEventType)> InCallback |
Enumerate the IDs and event types of all the activities in this database. | |
| bool | EnumerateActivityIdsAndEventTypesInRange
(
const int64 InFirstActivityId, |
Enumerate the IDs and event types of the activities in this database in the given range. | |
| bool | EnumerateActivityIdsWithEventTypesAndFlagsInRange
(
const int64 InFirstActivityId, |
Enumerate the IDs, event types and flags of the activities in this database in the given range. | |
| bool | EnumerateConnectionActivities
(
TFunctionRef< bool(FConcertSyncConnectionActivity&&)> InCallback |
Enumerate all the connection activities in this database. | |
| bool | EnumerateEndpointIds
(
TFunctionRef< bool(FGuid)> InCallback |
Enumerate all the endpoint IDs in this database. | |
| bool | EnumerateEndpoints
(
TFunctionRef< bool(FConcertSyncEndpointIdAndData&&)> InCallback |
Enumerate all the endpoints in this database. | |
| bool | EnumerateHeadRevisionPackageData
(
TFunctionRef< bool(const FConcertPackageInfo&, FConcertPackageDataStream&)> InCallback |
Enumerate the head revision package data for all packages in this database. | |
| bool | EnumerateLiveTransactionEventIdsForPackage
(
const FName InPackageName, |
Enumerate the IDs of any live transaction events for the given package name. | |
| bool | EnumerateLockActivities
(
TFunctionRef< bool(FConcertSyncLockActivity&&)> InCallback |
Enumerate all the lock activities in this database. | |
| bool | EnumeratePackageActivities
(
FIteratePackageActivityFunc InCallback |
Enumerate all the package activities in this database. | |
| bool | EnumeratePackageNamesWithHeadRevision
(
TFunctionRef< bool(FName)> InCallback, |
Enumerate package names for packages with a head revision (at least one package event) | |
| bool | EnumeratePackageNamesWithLiveTransactions
(
TFunctionRef< bool(FName)> InCallback |
Enumerate the names of of any packages that have live transaction events. | |
| bool | EnumerateReplicationActivities
(
TFunctionRef< bool(FConcertSyncReplicationActivity&&)> InCallback |
Enumerate all the replication activities in this database. | |
| bool | EnumerateTransactionActivities
(
TFunctionRef< bool(FConcertSyncTransactionActivity&&)> InCallback |
Enumerate all the transaction activities in this database. | |
| void | Flush any ongoing asynchronous tasks. | ||
| bool | GetActivity
(
const int64 InActivityId, |
Get the generic part of an activity from this database. | |
| bool | GetActivityEventType
(
const int64 InActivityId, |
Get the type of an activity in this database. | |
| bool | GetActivityForEvent
(
const int64 InEventId, |
Get the generic part of an activity for an event in this database. | |
| bool | GetActivityMaxId
(
int64& OutActivityId |
Get the maximum ID of the activities in this database. | |
| bool | GetConnectionActivity
(
const int64 InActivityId, |
Get a connection activity from this database. | |
| bool | GetConnectionActivityForEvent
(
const int64 InConnectionEventId, |
Get a connection activity for an event in this database. | |
| bool | GetConnectionEvent
(
const int64 InConnectionEventId, |
Get a connection event from this database. | |
| bool | GetEndpoint
(
const FGuid& InEndpointId, |
Get an endpoint from this database. | |
| FString | GetFilename () |
Get the filename of the currently open database, or an empty string. | |
| FString | GetLastError () |
Get the last error reported by this database. | |
| bool | GetLiveTransactionEventIds
(
TArray< int64 >& OutTransactionEventIds |
Get the IDs of any live transaction events. | |
| bool | GetLiveTransactionEventIdsForPackage
(
const FName InPackageName, |
Get the IDs of any live transaction events for the given package name. | |
| bool | GetLockActivity
(
const int64 InActivityId, |
Get a lock activity from this database. | |
| bool | GetLockActivityForEvent
(
const int64 InLockEventId, |
Get a lock activity for an event in this database. | |
| bool | GetLockEvent
(
const int64 InLockEventId, |
Get a lock event from this database. | |
| bool | GetPackageActivity
(
const int64 InActivityId, |
Get a package activity from this database. | |
| bool | GetPackageActivityForEvent
(
const int64 InPackageEventId, |
Get a package activity for an event in this database. | |
| bool | GetPackageDataForRevision
(
const FName InPackageName, |
Get the data from this database for the given package name for the given revision. | |
| bool | GetPackageEvent
(
const int64 InPackageEventId, |
Get a package event from this database. | |
| bool | GetPackageEventMetaData
(
const int64 InPackageEventId, |
Get a package event meta data (omitting the package data itself) from this database. | |
| bool | GetPackageHeadEventFromName
(
const FName InPackageName, |
Get Package Event Id from Package Name. The event id will be from the head revision of the package. | |
| bool | GetPackageHeadRevision
(
const FName InPackageName, |
Get the head revision in this database for the given package name. | |
| bool | GetPackageInfoForRevision
(
const FName InPackageName, |
Get the data from this database for the given package name for the given revision. | |
| TOptional< int64 > | GetPackageSizeForRevision
(
const FName InPackageName, |
Gets the package size in bytes of a package | |
| bool | GetReplicationActivity
(
const int64 InActivityId, |
Get a replication activity from this database. | |
| bool | GetReplicationActivityForEvent
(
const int64 InEventId, |
Get a replication activity from this database by its event ID | |
| bool | GetReplicationEvent
(
const int64 InReplicationEventId, |
Get a replication event from this database. | |
| bool | GetReplicationMaxEventIdByClientAndType
(
const FGuid& EndpointId, |
Get the maximum ID of the replication events in this database that was triggered by EndpointId and had ActivityType. | |
| bool | GetTransactionActivity
(
const int64 InActivityId, |
Get a transaction activity from this database. | |
| bool | GetTransactionActivityForEvent
(
const int64 InTransactionEventId, |
Get a transaction activity for an event in this database. | |
| bool | GetTransactionEvent
(
const int64 InTransactionEventId, |
Get a transaction event from this database. | |
| bool | GetTransactionMaxEventId
(
int64& OutTransactionEventId |
Get the maximum ID of the transaction events in this database. | |
| bool | Has all asynchronous package tasks completed. | ||
| bool | IsHeadRevisionPackageEvent
(
const int64 InPackageEventId, |
Check whether the given package event ID is currently for the head revision of the package in the event. | |
| bool | IsLiveTransactionEvent
(
const int64 InTransactionEventId, |
Check whether the given transaction event ID is currently for a live transaction event. | |
| bool | IsValid () |
Is this a valid database? (ie, has been successfully opened). | |
| FOnActivityProduced & | |||
| bool | Open
(
const FString& InSessionPath, |
Open (or create) a database file. | |
| bool | Open (or create) a database file. | ||
| bool | PackageHasLiveTransactions
(
const FName InPackageName, |
Get if a Package has any live transactions | |
| bool | SetActivities
(
const TSet< int64 >& ActivityIds, |
Iterates the given range, calls UpdateCallback on each element, and commits the update. | |
| bool | SetConnectionActivity
(
const FConcertSyncConnectionActivity& InConnectionActivity |
Set a connection activity in this database, creating or replacing it. | |
| bool | SetEndpoint
(
const FGuid& InEndpointId, |
Set an endpoint in this database, creating or replacing it. | |
| bool | SetLockActivity
(
const FConcertSyncLockActivity& InLockActivity |
Set a lock activity in this database, creating or replacing it. | |
| bool | SetPackageActivity
(
const FConcertSyncActivity& InPackageActivity, |
Set a package activity in this database, creating or replacing it. | |
| bool | SetReplicationActivity
(
const FConcertSyncReplicationActivity& InReplicationActivity |
Set a replication activity in this database, creating or replacing it. | |
| bool | SetTransactionActivity
(
const FConcertSyncTransactionActivity& InTransactionActivity, |
Set a transaction activity in this database, creating or replacing it. | |
| void | Check Asynchronous Tasks Status | ||
| bool | UpdatePackageEvent
(
const int64 InPackageEventId, |
Update the specified package event. | |
| bool | UpdateTransactionEvent
(
const int64 InTransactionEventId, |
Update the specified transaction event. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FConcertSyncSessionDatabase & | operator=
(
const FConcertSyncSessionDatabase& |
||
| FConcertSyncSessionDatabase & |
Typedefs
| Name | Description |
|---|---|
| FProcessPackageRequest |