System.Tether.AppProfile.TResourceValue

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

TResourceValue = record

C++

struct DECLSPEC_DRECORD TResourceValue
{
private:
    TResourceType FDataType;
    System::UnicodeString FString;
    System::Classes::TStream* FStream;
    TSimpleValue FSimpleValue;
    void __fastcall AddToJsonObject(System::Json::TJSONObject* const AJSonObject);
    bool __fastcall GetBoolean();
    double __fastcall GetDouble();
    float __fastcall GetSingle();
    __int64 __fastcall GetInt64();
    int __fastcall GetInteger();
    System::UnicodeString __fastcall GetString();
public:
    __fastcall TResourceValue(bool Value)/* overload */;
    __fastcall TResourceValue(__int64 Value)/* overload */;
    __fastcall TResourceValue(int Value)/* overload */;
    __fastcall TResourceValue(double Value)/* overload */;
    __fastcall TResourceValue(float Value)/* overload */;
    __fastcall TResourceValue(const System::UnicodeString Value)/* overload */;
    __fastcall TResourceValue(System::Classes::TStream* const Value)/* overload */;
    static TResourceValue __fastcall _op_Implicit(bool Value);
    static TResourceValue __fastcall _op_Implicit(__int64 Value);
    static TResourceValue __fastcall _op_Implicit(int Value);
    static TResourceValue __fastcall _op_Implicit(double Value);
    static TResourceValue __fastcall _op_Implicit(float Value);
    static TResourceValue __fastcall _op_Implicit(const System::UnicodeString Value);
    static TResourceValue __fastcall _op_Implicit(System::Classes::TStream* const Value);
    __property TResourceType DataType = {read=FDataType, write=FDataType};
    __property System::UnicodeString AsString = {read=GetString};
    __property int AsInteger = {read=GetInteger};
    __property double AsDouble = {read=GetDouble};
    __property __int64 AsInt64 = {read=GetInt64};
    __property float AsSingle = {read=GetSingle};
    __property bool AsBoolean = {read=GetBoolean};
    __property System::Classes::TStream* AsStream = {read=FStream};
    TResourceValue() {}
    TResourceValue& operator =(bool Value) { *this = TResourceValue::_op_Implicit(Value); return *this; }
    TResourceValue& operator =(__int64 Value) { *this = TResourceValue::_op_Implicit(Value); return *this; }
    TResourceValue& operator =(int Value) { *this = TResourceValue::_op_Implicit(Value); return *this; }
    TResourceValue& operator =(double Value) { *this = TResourceValue::_op_Implicit(Value); return *this; }
    TResourceValue& operator =(float Value) { *this = TResourceValue::_op_Implicit(Value); return *this; }
    TResourceValue& operator =(const System::UnicodeString Value) { *this = TResourceValue::_op_Implicit(Value); return *this; }
    TResourceValue& operator =(System::Classes::TStream* const Value) { *this = TResourceValue::_op_Implicit(Value); return *this; }
};

Propriétés

Type Visibilité  Source Unité  Parent
record
struct
public
System.Tether.AppProfile.pas
System.Tether.AppProfile.hpp
System.Tether.AppProfile System.Tether.AppProfile


Description

Conteneur pour une valeur.

DataType détermine le type de la valeur encapsulée. Vérifiez le type pour déterminer la méthode que vous devez utiliser pour obtenir la valeur encapsulée :

Type Méthode

TResourceType.Boolean

AsBoolean

TResourceType.Integer

AsInteger

TResourceType.Int64

AsInt64

TResourceType.Single

AsSingle

TResourceType.Double

AsDouble

TResourceType.String

AsString

Voir aussi