System.Tether.AppProfile.TResourceValue
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; }
};
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
record struct |
public | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | System.Tether.AppProfile |
Beschreibung
Wrapper für einen Wert.
DataType legt den Typ des gekapselten Wertes fest. Fragen Sie den Typ zum Festlegen der Methode ab, die zum Ermitteln des gekapselten Wertes verwendet werden muss:
Typ | Methode |
---|---|