C# Class TSystems.RELOAD.Storage.StoredDataValue

The protocol currently defines the following data models: o single value o array o dictionary These are represented with the StoredDataValue structure. The actual dataModel is known from the kind being stored. RELOAD base -13 p.83 --alex
Datei anzeigen Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Public Properties

Property Type Description
array_entry ArrayEntry
dictionary_entry DictionaryEntry
single_value_entry DataValue

Public Methods

Method Description
Dump ( BinaryWriter writer ) : UInt32

This method just serializes itself depended of the data model of the contained Usage data.

single_value: writes exists value

array_entry : writes exits and index values

dictionary : writes exits and key values

StoredDataValue ( IUsage value, System.Boolean exists ) : System

This private Constructor creates instances of StoredDataValue, that carray a single_value_entry

StoredDataValue ( UInt32 index, IUsage value, System.Boolean exists ) : System

This private Constructor creates instances of StoredDataValue, that carray a array_entry

StoredDataValue ( string key, IUsage value, System.Boolean exists ) : System

This Constructor creates instances of StoredDataValue, that carray a dictionary_entry

Private Methods

Method Description
createDataValue ( IUsage value, System.Boolean exists ) : DataValue

Method Details

Dump() public method

This method just serializes itself depended of the data model of the contained Usage data.

single_value: writes exists value

array_entry : writes exits and index values

dictionary : writes exits and key values

public Dump ( BinaryWriter writer ) : UInt32
writer System.IO.BinaryWriter
return System.UInt32

StoredDataValue() public method

This private Constructor creates instances of StoredDataValue, that carray a single_value_entry
public StoredDataValue ( IUsage value, System.Boolean exists ) : System
value IUsage
exists System.Boolean
return System

StoredDataValue() public method

This private Constructor creates instances of StoredDataValue, that carray a array_entry
public StoredDataValue ( UInt32 index, IUsage value, System.Boolean exists ) : System
index System.UInt32
value IUsage
exists System.Boolean
return System

StoredDataValue() public method

This Constructor creates instances of StoredDataValue, that carray a dictionary_entry
public StoredDataValue ( string key, IUsage value, System.Boolean exists ) : System
key string
value IUsage
exists System.Boolean
return System

Property Details

array_entry public_oe property

public ArrayEntry,TSystems.RELOAD.Storage array_entry
return ArrayEntry

dictionary_entry public_oe property

public DictionaryEntry,TSystems.RELOAD.Storage dictionary_entry
return DictionaryEntry

single_value_entry public_oe property

public DataValue,TSystems.RELOAD.Storage single_value_entry
return DataValue