|
ArticyXImporter
ArticyXImporter for Unreal Engine
|
The ExpressoType struct represents a flexible data type used in the Articy runtime. More...
#include <ArticyExpressoScripts.h>
Classes | |
| struct | Definition |
| The Definition struct represents a type definition for ExpressoType. More... | |
Public Types | |
| enum | EType { Undefined , Bool , Int , Float , String } |
| Enumeration for the type of the ExpressoType. | |
Public Member Functions | |
| virtual bool & | GetBool () |
| Retrieves the boolean value of the ExpressoType. | |
| virtual const bool & | GetBool () const |
| Retrieves the boolean value of the ExpressoType. | |
| virtual int64 & | GetInt () |
| Retrieves the int64 value of the ExpressoType. | |
| virtual const int64 & | GetInt () const |
| Retrieves the int64 value of the ExpressoType. | |
| virtual double & | GetFloat () |
| Retrieves the double value of the ExpressoType. | |
| virtual const double & | GetFloat () const |
| Retrieves the double value of the ExpressoType. | |
| virtual FString & | GetString () |
| Retrieves the string value of the ExpressoType. | |
| virtual const FString & | GetString () const |
| Retrieves the string value of the ExpressoType. | |
| virtual FString | ToString () const |
| Converts the ExpressoType instance to a string representation. | |
| ExpressoType () | |
| Default constructor for ExpressoType. | |
| virtual | ~ExpressoType () |
| Virtual destructor for ExpressoType. | |
| ExpressoType (UArticyBaseObject *Object, const FString &Property) | |
| Constructs an ExpressoType from an object and a property name. | |
| ExpressoType (const bool &Value) | |
| Constructs an ExpressoType from a boolean value. | |
| ExpressoType (const int64 &Value) | |
| Constructs an ExpressoType from an int64 value. | |
| ExpressoType (const int32 &Value) | |
| Constructs an ExpressoType from an int32 value. | |
| ExpressoType (const int16 &Value) | |
| Constructs an ExpressoType from an int16 value. | |
| ExpressoType (const int8 &Value) | |
| Constructs an ExpressoType from an int8 value. | |
| ExpressoType (const uint64 &Value) | |
| Constructs an ExpressoType from a uint64 value. | |
| ExpressoType (const uint32 &Value) | |
| Constructs an ExpressoType from a uint32 value. | |
| ExpressoType (const uint16 &Value) | |
| Constructs an ExpressoType from a uint16 value. | |
| ExpressoType (const uint8 &Value) | |
| Constructs an ExpressoType from a uint8 value. | |
| ExpressoType (const double &Value) | |
| Constructs an ExpressoType from a double value. | |
| ExpressoType (const float &Value) | |
| Constructs an ExpressoType from a float value. | |
| ExpressoType (const FString &Value) | |
| Constructs an ExpressoType from a string value. | |
| ExpressoType (const FText &Value) | |
| Constructs an ExpressoType from an FText value. | |
| ExpressoType (const FName &Value) | |
| Constructs an ExpressoType from an FName value. | |
| ExpressoType (const UArticyPrimitive *Object) | |
| Constructs an ExpressoType from an ArticyPrimitive object. | |
| ExpressoType (const UArticyString &Value) | |
| Constructs an ExpressoType from an ArticyString value. | |
| ExpressoType (const UArticyInt &Value) | |
| Constructs an ExpressoType from an ArticyInt value. | |
| ExpressoType (const UArticyBool &Value) | |
| Constructs an ExpressoType from an ArticyBool value. | |
| ExpressoType (const FArticyId &Value) | |
| Constructs an ExpressoType from an ArticyId value. | |
| operator bool () const | |
| Conversion operator to boolean. | |
| operator int64 () const | |
| Conversion operator to int64. | |
| operator int8 () const | |
| Conversion operator to int8. | |
| operator uint8 () const | |
| Conversion operator to uint8. | |
| operator int16 () const | |
| Conversion operator to int16. | |
| operator uint16 () const | |
| Conversion operator to uint16. | |
| operator int32 () const | |
| Conversion operator to int32. | |
| operator uint32 () const | |
| Conversion operator to uint32. | |
| operator uint64 () const | |
| Conversion operator to uint64. | |
| operator double () const | |
| Conversion operator to double. | |
| operator float () const | |
| Conversion operator to float. | |
| operator FString () const | |
| Conversion operator to FString. | |
| operator FText () const | |
| Conversion operator to FText. | |
| operator FName () const | |
| Conversion operator to FName. | |
| operator FArticyId () const | |
| Conversion operator to FArticyId. | |
| ExpressoType | operator- () const |
| Negates the ExpressoType instance. | |
| bool | operator== (const ExpressoType &Other) const |
| Equality operator for ExpressoType. | |
| bool | operator!= (const ExpressoType &Other) const |
| Inequality operator for ExpressoType. | |
| bool | operator< (const ExpressoType &Other) const |
| Less-than operator for ExpressoType. | |
| bool | operator> (const ExpressoType &Other) const |
| Greater-than operator for ExpressoType. | |
| bool | operator<= (const ExpressoType &Other) const |
| Less-than or equal-to operator for ExpressoType. | |
| bool | operator>= (const ExpressoType &Other) const |
| Greater-than or equal-to operator for ExpressoType. | |
| ExpressoType | operator&& (const ExpressoType &Other) const |
| Logical AND operator for ExpressoType. | |
| ExpressoType | operator|| (const ExpressoType &Other) const |
| Logical OR operator for ExpressoType. | |
| ExpressoType | operator^ (const ExpressoType &Other) const |
| Logical XOR operator for ExpressoType. | |
| ExpressoType | operator+ (const ExpressoType &Other) const |
| Addition operator for ExpressoType. | |
| ExpressoType | operator- (const ExpressoType &Other) const |
| Subtraction operator for ExpressoType. | |
| ExpressoType | operator* (const ExpressoType &Other) const |
| Multiplication operator for ExpressoType. | |
| ExpressoType | operator/ (const ExpressoType &Other) const |
| Division operator for ExpressoType. | |
| ExpressoType | operator% (const ExpressoType &Other) const |
| Modulo operator for ExpressoType. | |
| const Definition & | GetDefinition (const FName &CppType) const |
| Retrieves the definition of the specified C++ type. | |
| void | SetValue (UArticyBaseObject *Object, FString Property) const |
| Sets the value of a property on an object. | |
Static Public Member Functions | |
| template<typename T> | |
| static void | AddDefinition (const FName &CppType) |
| Adds a type definition for ExpressoType. | |
| static UArticyBaseObject * | TryFeatureReroute (UArticyBaseObject *Object, FString &Property) |
| Attempts to reroute a property to a feature object. | |
Public Attributes | |
| union { | |
| bool BoolValue | |
| Boolean value of the ExpressoType. | |
| int64 IntValue = 0 | |
| Integer value of the ExpressoType. | |
| double FloatValue | |
| Float value of the ExpressoType. | |
| }; | |
| FString | StringValue |
| String value of the ExpressoType. | |
| enum ExpressoType::EType | Type = Undefined |
| The type of the ExpressoType. | |
Static Public Attributes | |
| static TMap< FName, Definition > | Definitions |
| Map of type definitions for ExpressoType. | |
The ExpressoType struct represents a flexible data type used in the Articy runtime.
The ExpressoType struct is designed to handle various types of data within the Articy runtime, such as booleans, integers, floats, and strings. It provides implicit conversion operators for different data types, allowing seamless interactions with properties in Articy objects.
| ExpressoType::ExpressoType | ( | UArticyBaseObject * | Object, |
| const FString & | Property ) |
Constructs an ExpressoType from an object and a property name.
This constructor initializes an ExpressoType instance based on the specified property of a given object.
| Object | The object containing the property. |
| Property | The name of the property. |
| ExpressoType::ExpressoType | ( | const bool & | Value | ) |
Constructs an ExpressoType from a boolean value.
| Value | The boolean value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const int64 & | Value | ) |
Constructs an ExpressoType from an int64 value.
| Value | The int64 value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const int32 & | Value | ) |
Constructs an ExpressoType from an int32 value.
| Value | The int32 value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const int16 & | Value | ) |
Constructs an ExpressoType from an int16 value.
| Value | The int16 value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const int8 & | Value | ) |
Constructs an ExpressoType from an int8 value.
| Value | The int8 value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const uint64 & | Value | ) |
Constructs an ExpressoType from a uint64 value.
| Value | The uint64 value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const uint32 & | Value | ) |
Constructs an ExpressoType from a uint32 value.
| Value | The uint32 value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const uint16 & | Value | ) |
Constructs an ExpressoType from a uint16 value.
| Value | The uint16 value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const uint8 & | Value | ) |
Constructs an ExpressoType from a uint8 value.
| Value | The uint8 value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const double & | Value | ) |
Constructs an ExpressoType from a double value.
| Value | The double value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const float & | Value | ) |
Constructs an ExpressoType from a float value.
| Value | The float value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const FString & | Value | ) |
Constructs an ExpressoType from a string value.
| Value | The string value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const FText & | Value | ) |
Constructs an ExpressoType from an FText value.
| Value | The FText value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const FName & | Value | ) |
Constructs an ExpressoType from an FName value.
| Value | The FName value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const UArticyPrimitive * | Object | ) |
Constructs an ExpressoType from an ArticyPrimitive object.
This constructor initializes an ExpressoType instance based on the ID and clone ID of the specified object.
| Object | The ArticyPrimitive object. |
| ExpressoType::ExpressoType | ( | const UArticyString & | Value | ) |
Constructs an ExpressoType from an ArticyString value.
| Value | The ArticyString value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const UArticyInt & | Value | ) |
Constructs an ExpressoType from an ArticyInt value.
| Value | The ArticyInt value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const UArticyBool & | Value | ) |
Constructs an ExpressoType from an ArticyBool value.
| Value | The ArticyBool value to initialize the ExpressoType with. |
| ExpressoType::ExpressoType | ( | const FArticyId & | Value | ) |
Constructs an ExpressoType from an ArticyId value.
| Value | The ArticyId value to initialize the ExpressoType with. |
|
static |
Adds a type definition for ExpressoType.
This method adds a type definition for the specified C++ type to the ExpressoType definitions map.
| T | The C++ type. |
| CppType | The name of the C++ type. |
|
virtual |
Retrieves the boolean value of the ExpressoType.
|
virtual |
Retrieves the boolean value of the ExpressoType.
| const ExpressoType::Definition & ExpressoType::GetDefinition | ( | const FName & | CppType | ) | const |
Retrieves the definition of the specified C++ type.
This method returns the definition of the specified C++ type from the ExpressoType definitions map.
| CppType | The name of the C++ type. |
|
virtual |
Retrieves the double value of the ExpressoType.
|
virtual |
Retrieves the double value of the ExpressoType.
|
virtual |
Retrieves the int64 value of the ExpressoType.
|
virtual |
Retrieves the int64 value of the ExpressoType.
|
virtual |
Retrieves the string value of the ExpressoType.
|
virtual |
Retrieves the string value of the ExpressoType.
|
explicit |
Conversion operator to boolean.
This operator converts the ExpressoType instance to a boolean value.
|
explicit |
Conversion operator to double.
This operator converts the ExpressoType instance to a double value.
|
explicit |
Conversion operator to FArticyId.
This operator converts the ExpressoType instance to an FArticyId.
|
explicit |
Conversion operator to float.
This operator converts the ExpressoType instance to a float value.
|
explicit |
Conversion operator to FName.
This operator converts the ExpressoType instance to an FName.
|
explicit |
Conversion operator to FString.
This operator converts the ExpressoType instance to an FString.
|
explicit |
Conversion operator to FText.
This operator converts the ExpressoType instance to an FText.
|
explicit |
Conversion operator to int16.
This operator converts the ExpressoType instance to an int16 value.
|
explicit |
Conversion operator to int32.
This operator converts the ExpressoType instance to an int32 value.
|
explicit |
Conversion operator to int64.
This operator converts the ExpressoType instance to an int64 value.
|
explicit |
Conversion operator to int8.
This operator converts the ExpressoType instance to an int8 value.
|
explicit |
Conversion operator to uint16.
This operator converts the ExpressoType instance to a uint16 value.
|
explicit |
Conversion operator to uint32.
This operator converts the ExpressoType instance to a uint32 value.
|
explicit |
Conversion operator to uint64.
This operator converts the ExpressoType instance to a uint64 value.
|
explicit |
Conversion operator to uint8.
This operator converts the ExpressoType instance to a uint8 value.
| bool ExpressoType::operator!= | ( | const ExpressoType & | Other | ) | const |
Inequality operator for ExpressoType.
This operator compares two ExpressoType instances for inequality.
| Other | The other ExpressoType instance to compare. |
| ExpressoType ExpressoType::operator% | ( | const ExpressoType & | Other | ) | const |
Modulo operator for ExpressoType.
This operator performs modulo operation on two ExpressoType instances.
| Other | The other ExpressoType instance. |
| ExpressoType ExpressoType::operator&& | ( | const ExpressoType & | Other | ) | const |
Logical AND operator for ExpressoType.
This operator performs logical AND operation on two ExpressoType instances.
| Other | The other ExpressoType instance. |
| ExpressoType ExpressoType::operator* | ( | const ExpressoType & | Other | ) | const |
Multiplication operator for ExpressoType.
This operator performs multiplication operation on two ExpressoType instances.
| Other | The other ExpressoType instance. |
| ExpressoType ExpressoType::operator+ | ( | const ExpressoType & | Other | ) | const |
Addition operator for ExpressoType.
This operator performs addition operation on two ExpressoType instances.
| Other | The other ExpressoType instance. |
| ExpressoType ExpressoType::operator- | ( | ) | const |
Negates the ExpressoType instance.
This operator returns a new ExpressoType instance with the negated value of the current instance.
| ExpressoType ExpressoType::operator- | ( | const ExpressoType & | Other | ) | const |
Subtraction operator for ExpressoType.
This operator performs subtraction operation on two ExpressoType instances.
| Other | The other ExpressoType instance. |
| ExpressoType ExpressoType::operator/ | ( | const ExpressoType & | Other | ) | const |
Division operator for ExpressoType.
This operator performs division operation on two ExpressoType instances.
| Other | The other ExpressoType instance. |
| bool ExpressoType::operator< | ( | const ExpressoType & | Other | ) | const |
Less-than operator for ExpressoType.
This operator compares two ExpressoType instances for less-than relationship.
| Other | The other ExpressoType instance to compare. |
| bool ExpressoType::operator<= | ( | const ExpressoType & | Other | ) | const |
Less-than or equal-to operator for ExpressoType.
This operator compares two ExpressoType instances for less-than or equal-to relationship.
| Other | The other ExpressoType instance to compare. |
| bool ExpressoType::operator== | ( | const ExpressoType & | Other | ) | const |
Equality operator for ExpressoType.
This operator compares two ExpressoType instances for equality.
| Other | The other ExpressoType instance to compare. |
| bool ExpressoType::operator> | ( | const ExpressoType & | Other | ) | const |
Greater-than operator for ExpressoType.
This operator compares two ExpressoType instances for greater-than relationship.
| Other | The other ExpressoType instance to compare. |
| bool ExpressoType::operator>= | ( | const ExpressoType & | Other | ) | const |
Greater-than or equal-to operator for ExpressoType.
This operator compares two ExpressoType instances for greater-than or equal-to relationship.
| Other | The other ExpressoType instance to compare. |
| ExpressoType ExpressoType::operator^ | ( | const ExpressoType & | Other | ) | const |
Logical XOR operator for ExpressoType.
This operator performs logical XOR operation on two ExpressoType instances.
| Other | The other ExpressoType instance. |
| ExpressoType ExpressoType::operator|| | ( | const ExpressoType & | Other | ) | const |
Logical OR operator for ExpressoType.
This operator performs logical OR operation on two ExpressoType instances.
| Other | The other ExpressoType instance. |
| void ExpressoType::SetValue | ( | UArticyBaseObject * | Object, |
| FString | Property ) const |
Sets the value of a property on an object.
This method sets the value of the specified property on the given object using the ExpressoType value.
| Object | The object containing the property. |
| Property | The name of the property. |
|
virtual |
Converts the ExpressoType instance to a string representation.
This method returns the string representation of the ExpressoType based on its type.
|
static |
Attempts to reroute a property to a feature object.
This method checks if the specified property contains a dot, indicating that it is a feature property, and reroutes it to the appropriate feature object if necessary.
| Object | The object containing the property. |
| Property | The name of the property. |
|
static |
Map of type definitions for ExpressoType.
This map contains a Factory and a Setter lambda for all the types that may exist as properties. This is needed because we need the cpp type (template argument) for reflection.