#include <DomPatch.h>
Public Types | |
| enum class | Type { Add , Remove , Replace , Copy , Move , Test } |
| The operation to perform. More... | |
| enum class | ExistenceCheckFlags : AZ::u8 { DefaultExistenceCheck = 0x0 , VerifyFullPath = 0x1 , AllowEndOfArray = 0x2 } |
| using | InversePatches = AZStd::fixed_vector< PatchOperation, 2 > |
Static Public Member Functions | |
| static PatchOperation | AddOperation (Path destinationPath, Value value) |
| static PatchOperation | RemoveOperation (Path pathToRemove) |
| static PatchOperation | ReplaceOperation (Path destinationPath, Value value) |
| static PatchOperation | CopyOperation (Path destinationPath, Path sourcePath) |
| static PatchOperation | MoveOperation (Path destinationPath, Path sourcePath) |
| static PatchOperation | TestOperation (Path testPath, Value value) |
| static AZ::Outcome< PatchOperation, AZStd::string > | CreateFromDomRepresentation (Value domValue) |
A patch operation that represents an atomic operation for mutating or validating a Value. PatchOperations can be created with helper methods in Patch. /see Patch
The operation to perform.
| Enumerator | |
|---|---|
| Add | Inserts or replaces the value at DestinationPath with Value. |
| Remove | Removes the entry at DestinationPath. |
| Replace | Replaces the value at DestinationPath with Value. |
| Copy | Copies the contents of SourcePath to DestinationPath. |
| Move | Moves the contents of SourcePath to DestinationPath. |
| Test | Ensures the contents of DestinationPath match Value or fails, performs no mutations. |
| bool AZ::Dom::PatchOperation::ContainsNormalizedEntries | ( | ) | const |
Returns true if this contains an "EndOfArray" entry in any relevant paths, meaning resolving the path requires a lookup inside a target DOM.