#include <DomValueWriter.h>
Inherits AZ::Dom::Visitor.
Public Member Functions | |
ValueWriter (Value &outputValue) | |
VisitorFlags | GetVisitorFlags () const override |
Result | Null () override |
Operates on an empty null value. | |
Result | Bool (bool value) override |
Operates on a bool value. | |
Result | Int64 (AZ::s64 value) override |
Operates on a signed, 64 bit integer value. | |
Result | Uint64 (AZ::u64 value) override |
Operates on an unsigned, 64 bit integer value. | |
Result | Double (double value) override |
Operates on a double precision, 64 bit floating point value. | |
Result | String (AZStd::string_view value, Lifetime lifetime) override |
Result | RefCountedString (AZStd::shared_ptr< const AZStd::vector< char > > value, Lifetime lifetime) override |
Result | StartObject () override |
Result | EndObject (AZ::u64 attributeCount) override |
Result | Key (AZ::Name key) override |
Result | RawKey (AZStd::string_view key, Lifetime lifetime) override |
Result | StartArray () override |
Result | EndArray (AZ::u64 elementCount) override |
Result | StartNode (AZ::Name name) override |
Result | RawStartNode (AZStd::string_view name, Lifetime lifetime) override |
Result | EndNode (AZ::u64 attributeCount, AZ::u64 elementCount) override |
Result | OpaqueValue (OpaqueType &value) override |
Public Member Functions inherited from AZ::Dom::Visitor | |
virtual VisitorFlags | GetVisitorFlags () const |
bool | SupportsRawValues () const |
bool | SupportsRawKeys () const |
bool | SupportsObjects () const |
bool | SupportsArrays () const |
bool | SupportsNodes () const |
bool | SupportsOpaqueValues () const |
virtual Result | Null () |
Operates on an empty null value. | |
virtual Result | Bool (bool value) |
Operates on a bool value. | |
virtual Result | Int64 (AZ::s64 value) |
Operates on a signed, 64 bit integer value. | |
virtual Result | Uint64 (AZ::u64 value) |
Operates on an unsigned, 64 bit integer value. | |
virtual Result | Double (double value) |
Operates on a double precision, 64 bit floating point value. | |
virtual Result | String (AZStd::string_view value, Lifetime lifetime) |
virtual Result | RefCountedString (AZStd::shared_ptr< const AZStd::vector< char > > value, Lifetime lifetime) |
virtual Result | OpaqueValue (OpaqueType &value) |
virtual Result | RawValue (AZStd::string_view value, Lifetime lifetime) |
virtual Result | StartObject () |
virtual Result | EndObject (AZ::u64 attributeCount) |
virtual Result | Key (AZ::Name key) |
virtual Result | RawKey (AZStd::string_view key, Lifetime lifetime) |
virtual Result | StartArray () |
virtual Result | EndArray (AZ::u64 elementCount) |
virtual Result | StartNode (AZ::Name name) |
virtual Result | RawStartNode (AZStd::string_view name, Lifetime lifetime) |
virtual Result | EndNode (AZ::u64 attributeCount, AZ::u64 elementCount) |
Additional Inherited Members | |
Public Types inherited from AZ::Dom::Visitor | |
using | Result = AZ::Outcome< void, VisitorError > |
Static Protected Member Functions inherited from AZ::Dom::Visitor | |
static Result | VisitorFailure (VisitorErrorCode code) |
Helper method, constructs a failure Result with the specified code. | |
static Result | VisitorFailure (VisitorErrorCode code, AZStd::string additionalInfo) |
Helper method, constructs a failure Result with the specified code and supplemental info. | |
static Result | VisitorFailure (VisitorError error) |
Helper method, constructs a failure Result with the specified error. | |
static Result | VisitorSuccess () |
Helper method, constructs a success Result. | |
|
overridevirtual |
Operates on a bool value.
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Operates on a double precision, 64 bit floating point value.
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Finishes operating on an Array. Callers must provide the number of elements that were provided to the array, i.e. the number of value calls made within the direct context of this array (but not any nested arrays / nodes).
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Finishes operating on a Node. Callers must provide both the number of attributes the were provided and the number of elements that were provided to the node, attributes being values prefaced by a call to Key.
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Finishes operating on an Object. Callers must provide the number of attributes that were provided to the object, i.e. the number of key and value calls made within the direct context of this object (but not any nested objects / nodes).
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Returns a set of flags representing the operations this Visitor supports. The base implementation supports raw keys (
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Operates on a signed, 64 bit integer value.
Reimplemented from AZ::Dom::Visitor.
Specifies a key for a key/value pair. Key must be called subsequent to a call to StartObject or StartNode and immediately followed by calls representing the key's associated value.
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Operates on an empty null value.
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Operates on an opaque value. As opaque values are a reference type, storage semantics are provided to indicate where the value may be stored persistently or requires a copy. The base implementation of OpaqueValue rejects the operation, as opaque values are meant for special cases with specific implementations, not generic usage.
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Specifies a key for a key/value pair using a raw string instead of AZ::Name.
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Operates on a Node using a raw string instead of AZ::Name.
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Operates on a ref-counted string value. S
lifetime | Specifies the lifetime of this string. If the string has a temporary lifetime, it may not be safely stored as a reference, but may still be safely stored as a ref-counted shared_ptr. |
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Operates on an Array. Callers may make any number of subsequent value calls to represent the elements of the array, and then must call EndArray.
Reimplemented from AZ::Dom::Visitor.
Operates on a Node. Callers may make any number of Key calls followed by value calls or value calls not prefixed with a Key call, and then must call EndNode. See StartObject and StartArray as Node types combine the functionality of both structures into a named Node structure.
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Operates on an Object. Callers may make any number of Key calls, followed by calls representing a value (including a nested StartObject call) and then must call EndObject.
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Operates on a string value. As strings are a reference type, storage semantics are provided to indicate where the value may be stored persistently or requires a copy.
lifetime | Specifies the lifetime of this string - if the string has a temporary lifetime, it cannot safely be stored as a reference. |
Reimplemented from AZ::Dom::Visitor.
|
overridevirtual |
Operates on an unsigned, 64 bit integer value.
Reimplemented from AZ::Dom::Visitor.